Forum Moderators: open

Message Too Old, No Replies

Sending form data with IE and NS

         

Alex66

2:31 pm on Dec 8, 2004 (gmt 0)

10+ Year Member



I have created a multi-page form to collect user data. A mail.php file receives the data and sends them to an e-mail account.

The following HTML line

<input type="hidden" name="redirect" value="http://www.example.com/.../">

takes the user to the next page when he clicks on the SEND button.

No problem with IE6. I fill in the form, click on the SEND button, the redirect takes me to the next page and, simultaneously, I receive an e-mail with input data.

Netscape 7.2 and Firefox 1.0 give me some problems. After clicking on SEND button, the browser loads mail.php and stops. No redirect. In addition, I receive the e-mail, but with no input data, only with field names.

Here is the link for a code check: <SNIP>

Any help would be welcome. Thank you in advance.

Alessandro

[edited by: BlobFisk at 4:17 pm (utc) on Dec. 8, 2004]
[edit reason] No URLs please! See TOS [webmasterworld.com] [/edit]

rainborick

7:19 pm on Dec 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It might be a server problem. Netscape/Firefox/Mozilla are sensitive to the Content-Type header that the server outputs, and if it/they don't recognize the file type, they'll consider the page indecipherable and will stop. Internet Explorer, on the other hand, will sample (a.k.a. sniff) the content served regardless of the Content-Type header and will attempt to render anything that smells like HTML.

So, visit the at Server Header Checker [searchengineworld.com] at searchengineworld and enter the URL for your php script. If it comes back with something like Content-Type: Application/Data or just about anything other than "text/HTML", you need to contact your hosting service about changing the server settings for your site. Good luck!

[edited by: tedster at 8:52 pm (utc) on Dec. 8, 2004]
[edit reason] make link live [/edit]

Alex66

9:06 am on Dec 9, 2004 (gmt 0)

10+ Year Member



I checked my php script, and the output was as follows:

Status: HTTP/1.1 302
Server: Apache/2.0.49
X-Powered-By: PHP/4.3.5
Location:
Content-Length: 0
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html

If the problem is server-side, my knowledge is poor. I am now trying to make the HTML code of my pages as clean as possible.

If you have any other suggestion, please let me know.

Thank you.