Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

PHP Form Generator Problem

Posted on 2004-09-29
8
213 Views
Last Modified: 2008-03-06
Hello all,

I am stuck in the middle of a jam here.  I've been using PHP Form Generator for all inquiries from my site.  For some reason, the page after you hit submit (which goes to process.php and e-mail's you the info) a blank page shows instead of the thank you page.  We get the inquiry, but the blank page confuses people and they just keep on hitting submit and then give up.  I've been able to change that to just say Thank you, but it still looks very unprofessional.

Any ideas on correcting this issue?

Thanks,

Adam

0
Comment
Question by:Auctionboss
  • 4
8 Comments
 
LVL 27

Expert Comment

by:Diablo84
ID: 12181185
Prehaps redirecting the user back to the form page would be suitable?

At the top of the page (or after the processing but before any output) add

<?php
header("location: page_to_display.php");
exit;
?>
0
 

Author Comment

by:Auctionboss
ID: 12181302
I have the following at the bottom of the page:
header("Refresh: 0;url=/thankyouAD.html");
?><?php
?>

Doesn't seem to want to work..  I also check to see if the PHP engine was working, and I've been told that it is.

This is why it's so mind boggling.  How can something work fine for weeks, but then, all of a sudden stop working?

Just strange.

0
 
LVL 27

Accepted Solution

by:
Diablo84 earned 125 total points
ID: 12181729
If its at the bottom of the page and there is any output before it then it will not work.

Have you recently made any changes to the page?

Check for ANY output before that line, php echo/print, html, new lines outside of the <?php tags

Also if the refresh is instant (ie. no delay) it would make more sense to use header("location: thankyouAD.html");
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 27

Expert Comment

by:Diablo84
ID: 12181740
You can also add the following to the top of the file

error_reporting(E_ALL ^ E_NOTICE);

to get an idea of any errors that are occuring in case you have your level of error checking reduced.
0
 
LVL 1

Expert Comment

by:Codeit1978
ID: 12199956
Can you post the code?
0
 
LVL 27

Expert Comment

by:Diablo84
ID: 12242414
hi Auctionboss,

I'm just going back over some older questions that are still open to check that everyone has their problem solved. Did you resolve the issue or is any more suggestions needed?

Best Wishes

|)iablo
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question