Closed Bug 297781 Opened 20 years ago Closed 20 years ago

getting a blank page after submitting a form

Categories

(Toolkit :: Form Manager, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: laura, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: When creating forms that post I often redirect to another page after the POST has been processed to avoid the "Your page contains postdata..." dialog when people refresh or go back. I am getting a blank page after submitting forms on this site. Any suggestions on how to better redirect the forms? Reproducible: Always
Does the form work correctly in other browsers (IE, safari etc..)? If you believe this is a bug in firefox then could you please provide more details such as a link to the form that is not working as expected or attach the code that you are using.
Laura please reply directly to the bug and not via email. From email: Thanks for the response. Yes, all the forms on this site work in IE. I have attached the code for the contact form. http://www.restaurantactivityreport.com/contact.htm <?php $message = "First Name: $first_name\n" . "Last Name: $last_name\n" . "Company: $company\n" . "Address: $address\n" . "City: $city\n" . "State: $state\n" . "Zip: $zip\n" . "Work phone: $workphone\n" . "Fax: $fax\n" . "Email: $email\n" . "Newsletter: $newsletter\n" . "Send Activity Report: $activityreport\n". "Best time to call: $howdidyoufind\n". "Other Markets Interested in: $othermarkets\n". "Comments: $comments\n"; // $headers = "MIME-Version: 1.0\r\n"; // $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: " . $_POST["email"] . "\r\n"; $to = "sales@restaurantactivityreport.com"; $subject = "Contact form - Restaurant Activity Report"; // Mail is Sent mail( $to, $subject, $message, $headers ); // include("thanks.htm"); ?> <form name="hidform" action="http://www.optinpro.com/scripts/subscribe.asp" method="POST"> <input type="HIDDEN" Name="UserID" Value="885"> <input type="HIDDEN" Name="ListID" Value="10006"> <input type="HIDDEN" Name="RedirectURL" Value="http://www.restaurantactivityreport.com/thanks.htm"> <input type="HIDDEN" Name="ErrorURL" Value="http://www.optinpro.com/scripts/error.asp"> <!--<input type="HIDDEN" Name="AutoReply" Value="">--> <input type="HIDDEN" name="HTMLSupport" value="True"> <input type="hidden" name="FirstName" value='<?=$_POST["first_name"]?>'> <input type="hidden" name="LastName" value='<?=$_POST["last_name"]?>'> <input type="hidden" name="Email" value='<?=$_POST["email"]?>'> </form> <script language="javascript"> hidform.submit(); </script>
hidform.submit(); is used, but hidform has not been defined. Also, note that the html on that page misses several important tags Not a mozilla bug, bug is in your code use document.forms["hidform"].submit(); + fix the html You might wanna check out JavaScript forums for futher help --> INVALID
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.