rrrrr Posted December 1, 2008 Share Posted December 1, 2008 Hi everyone, im not really a php-programmer, so please excuse any stupid question. I made a order form posting to a HTTP_POST_VARS and then to a mail (...) function, the mail is sent out if i use FF and Safari, but if i use Inet Explorer, nothing happens when clicking the Send-Button. Has anyone an idea what the problem could be? Any help appreciated... Quote Link to comment https://forums.phpfreaks.com/topic/134992-simple-post-problem-in-inet-explorer/ Share on other sites More sharing options...
tapos Posted December 1, 2008 Share Posted December 1, 2008 use $_POST instead of HTTP_POST_VARS Quote Link to comment https://forums.phpfreaks.com/topic/134992-simple-post-problem-in-inet-explorer/#findComment-703045 Share on other sites More sharing options...
gevans Posted December 1, 2008 Share Posted December 1, 2008 Sounds like a problem with your html (or any other client side script) The browser wouldn't affect php (server-side) script Quote Link to comment https://forums.phpfreaks.com/topic/134992-simple-post-problem-in-inet-explorer/#findComment-703047 Share on other sites More sharing options...
PFMaBiSmAd Posted December 1, 2008 Share Posted December 1, 2008 If you are using an image for a submit button, read this - http://us2.php.net/manual/en/faq.html.php#faq.html.form-image To get specific help with what your code is doing, we would need to see your form and form processing code. 101 different people could have written the first post in this thread and there could be different problem in each of their code giving the same symptoms. Quote Link to comment https://forums.phpfreaks.com/topic/134992-simple-post-problem-in-inet-explorer/#findComment-703048 Share on other sites More sharing options...
rrrrr Posted December 2, 2008 Author Share Posted December 2, 2008 HEy, sorry, i was offline, so i couldnt reply. Thanks for your hints, ill try to post the code here. I dont use an image button to submit..the strange thing is, with Firefox there are not probs at all, just Explorer doesnt do what i want. The html simply does this: <form method="post" action="thanks.php"> which he gets from several form fields. Later then it should get sent with <input type="submit" value=" Order! "> The thanks.php then does this: variables = xyz...; while(list($email,$value)=each($HTTP_POST_VARS)) { $message.="$email: $value\n\n\n"; } mail($admin,$subject,$message,"From: xyz"); mail($client,$ordersubject,$clientmessage,"From: xyz"); Now all that works...i just cant explain why Inet-Explorer doesnt even jump to thanks.php after clicking the submit button. Any help appreciated...let me know when i should post the complete page code.. Quote Link to comment https://forums.phpfreaks.com/topic/134992-simple-post-problem-in-inet-explorer/#findComment-704122 Share on other sites More sharing options...
gevans Posted December 2, 2008 Share Posted December 2, 2008 <?php $message = NULL; while(list($email,$value)=each($_POST)) { $message.="$email: $value\n\n\n"; } mail($admin,$subject,$message,"From: xyz"); mail($client,$ordersubject,$clientmessage,"From: xyz"); ?> That might be it?? Shouldn't be the reason a broiwser has a problem with it but give it a try $HTTP_POST_VAR has been discontinued Quote Link to comment https://forums.phpfreaks.com/topic/134992-simple-post-problem-in-inet-explorer/#findComment-704131 Share on other sites More sharing options...
PFMaBiSmAd Posted December 2, 2008 Share Posted December 2, 2008 If your form works in one browser and not another, it is probably due to invalid HTML and you would need to post your form to get any specific help with what is wrong with it. Opps, someone already told you those things - Sounds like a problem with your html (or any other client side script) To get specific help with what your code is doing, we would need to see your form and form processing code. Quote Link to comment https://forums.phpfreaks.com/topic/134992-simple-post-problem-in-inet-explorer/#findComment-704139 Share on other sites More sharing options...
rrrrr Posted December 2, 2008 Author Share Posted December 2, 2008 OK, here i post the code of the page containing the forms...its located at http://www.thefanshop.ch/bestellen.php <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>FANSHOP</title> <link rel="stylesheet" type="text/css" href="fanshop.css"> <style type="text/css"> <!-- .style1 {font-size: 9px} --> </style> </head><body> <div id="head"> <div id="menu"> HELLO AT FANSHOP</div> </div> <form method="post" action="thanks.php"> </div> </div> <div id="content"> <div class="bild"> <p><a href="index.php"><img src="img/shop_m.gif" /></a></p> <p><img src="img/spacer_menu.gif" /> <p><a href="index_l.php"><img src="img/shop_l.gif" /></a></p> <p><img src="img/spacer_menu.gif" /></p> <p><a href="about.php"><img src="img/about.gif" /></a></p> <p><img src="img/spacer_menu.gif" /></p> <a href="kontakt.php"><img src="img/kontakt.gif" /></a><p> <img src="img/spacer_menu.gif" /></p> <p><a href="galerie.php"><img src="img/galerie.gif" /></a></p> <p><img src="img/spacer_menu.gif" /></p ><p><a href="links.php"><img src="img/links.gif" /></a></p> </div> <div class="bildrechts2"> <table width="400" border="0"> <tr> <td><img src="img/boys/Christoph_Buechel_thumb.jpg" alt="" width="100" /></td> <td valign="bottom">Christoph Büchel<br /> CHF 35,-</td> <td class="text2"> <input type="hidden" name="Christoph_Buechel" id="hiddenField" /> Grösse <select name="Groesse_Christoph_Buechel" > <option>S</option> <option selected="selected">M</option> <option>L</option> <option>XL</option> </select> <br /><br /> Gender <select name="Gender_Christoph_Buechel"> <option>Ladies</option> <option selected="selected">Men</option> </select> <br /><br /> Menge <input name="Menge_Christoph_Buechel" type="text" method="post" id="Menge" style="background-color: #FFFFFF"" size="3" maxlength="3"/> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr><input type="hidden" name="Fabrice_Gygi" id="hiddenField" /> <td><img src="img/boys/Fabrice_Gygi_thumb.jpg" alt="" width="100" /></td> <td valign="bottom">Fabrice Gygi<br /> CHF 35,-</td> <td class="text2">Grösse <select name="Groesse_Fabrice_Gygi"> <option>S</option> <option selected="selected">M</option> <option>L</option> <option>XL</option> </select> <br /><br /> Gender <select name="Gender_Fabrice_Gygi"> <option>Ladies</option> <option selected="selected">Men</option> </select> <br /><br /> Menge <input name="Menge_Fabrice_Gygi" type="text" method="post" id="Menge2" style="background-color: #FFFFFF" size="3" maxlength="3"/> </td></tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr><input type="hidden" name="Fischli_Weiss" id="hiddenField" /> <td><img src="img/boys/Fischli_Weiss_thumb.jpg" alt="" width="100" /></td> <td valign="bottom">Fischli/Weiss<br /> CHF 35,-</td> <td class="text2">Grösse <select name="Groesse_Fischli_Weiss"> <option>S</option> <option selected="selected">M</option> <option>L</option> <option>XL</option> </select> <br /><br /> Gender <select name="Gender_Fischli_Weiss"> <option>Ladies</option> <option selected="selected">Men</option> </select> <br /><br /> Menge <input name="Menge_Fischli_Weiss" type="text" method="post" id="Menge2" style="background-color: #FFFFFF" size="3" maxlength="3"/> </td></tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr><input type="hidden" name="John_Armleder" id="hiddenField" /> <td><img src="img/boys/John_Armleder_thumb.jpg" alt="" width="100" /></td> <td valign="bottom">John Armleder<br /> CHF 35,-</td> <td class="text2">Grösse <select name="Groesse_John_Armleder"> <option>S</option> <option selected="selected">M</option> <option>L</option> <option>XL</option> </select> <br /><br /> Gender <select name="Gender_John_Armleder"> <option>Ladies</option> <option selected="selected">Men</option> </select> <br /><br /> Menge <input name="Menge_John_Armleder" type="text" method="post" id="Menge2" style="background-color: #FFFFFF" size="3" maxlength="3"/> </td></tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr><input type="hidden" name="Olivier_Mosset" id="hiddenField" /> <td><img src="img/boys/Olivier_Mosset_thumb.jpg" alt="" width="100" /></td> <td valign="bottom">Olivier Mosset<br /> CHF 35,-</td> <td class="text2">Grösse <select name="Groesse_Olivier_Mosset"> <option>S</option> <option selected="selected">M</option> <option>L</option> <option>XL</option> </select> <br /><br /> Gender <select name="Gender_Olivier_Mosset"> <option>Ladies</option> <option selected="selected">Men</option> </select> <br /><br /> Menge <input name="Menge_Olivier_Mosset" type="text" method="post" id="Menge2" style="background-color: #FFFFFF" size="3" maxlength="3"/> </td></tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr><input type="hidden" name="Pipilotti_Rist" id="hiddenField" /> <td><img src="img/boys/Pipilotti_Rist_thumb.jpg" alt="" width="100" /></td> <td valign="bottom">Pipilotti Rist<br /> CHF 35,-</td> <td class="text2">Grösse <select name="Groesse_Pipilotti_Rist"> <option>S</option> <option selected="selected">M</option> <option>L</option> <option>XL</option> </select> <br /><br /> Gender <select name="Gender_Pipilotti_Rist"> <option>Ladies</option> <option selected="selected">Men</option> </select> <br /><br /> Menge <input name="Menge_Pipilotti_Rist" type="text" method="post" id="Menge2" style="background-color: #FFFFFF" size="3" maxlength="3"/> </td></tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr><input type="hidden" name="Roman_Signer" id="hiddenField" /> <td><img src="img/boys/Roman_Signer_thumb.jpg" alt="" width="100" /></td> <td valign="bottom">Roman Signer<br /> CHF 35,-</td> <td class="text2">Grösse <select name="Groesse_Roman_Signer"> <option>S</option> <option selected="selected">M</option> <option>L</option> <option>XL</option> </select> <br /><br /> Gender <select name="Gender_Roman_Signer"> <option>Ladies</option> <option selected="selected">Men</option> </select> <br /><br /> Menge <input name="Menge_Roman_Signer" type="text" method="post" id="Menge2" style="background-color: #FFFFFF" size="3" maxlength="3"/> </td></tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr><input type="hidden" name="Thomas_Hirschhorn" id="hiddenField" /> <td><img src="img/boys/Thomas_Hirshhorn_thumb.jpg" alt="" width="100" /></td> <td valign="bottom">Thomas Hirschhorn<br /> CHF 35,-</td> <td class="text2">Grösse <select name="Groesse_Thomas_Hirschhorn"> <option>S</option> <option selected="selected">M</option> <option>L</option> <option>XL</option> </select> <br /><br /> Gender <select name="Gender_Thomas_Hirschhorn"> <option>Ladies</option> <option selected="selected">Men</option> </select> <br /><br /> Menge <input name="Menge_Thomas_Hirschhorn" type="text" method="post" id="Menge2" style="background-color: #FFFFFF" size="3" maxlength="3"/> </td></tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr><input type="hidden" name="Ugo_Rondinone" id="hiddenField" /> <td><img src="img/boys/Ugo_Rondinone_thumb.jpg" alt="" width="100" /></td> <td valign="bottom">Ugo Rondinone<br /> CHF 35,-</td> <td class="text2">Grösse <select name="Groesse_Ugo_Rondinone"> <option>S</option> <option selected="selected">M</option> <option>L</option> <option>XL</option> </select> <br /><br /> Gender <select name="Gender_Ugo_Rondinone"> <option>Ladies</option> <option selected="selected">Men</option> </select> <br /><br /> Menge <input name="Menge_Ugo_Rondinone" type="text" method="post" id="Menge2" style="background-color: #FFFFFF" size="3" maxlength="3"/> </td></tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td></td> <td> </td> </tr> <tr><input type="hidden" name="Urs_Fischer" id="hiddenField" /> <td><img src="img/boys/Urs_Fischer_thumb.jpg" alt="" width="100" /></td> <td valign="bottom">Urs Fischer<br /> CHF 35,-</td> <td class="text2">Grösse <select name="Groesse_Urs_Fischer"> <option>S</option> <option selected="selected">M</option> <option>L</option> <option>XL</option> </select> <br /><br /> Gender <select name="Gender_Urs_Fischer"> <option>Ladies</option> <option selected="selected">Men</option> </select> <br /><br /> Menge <input name="Menge_Urs_Fischer" type="text" method="post" id="Menge2" style="background-color: #FFFFFF" size="3" maxlength="3"/> </td></tr> </table> <br> <br> <br> <br> <label></label> </form> <p><b>Nachname Vorname</b><br> <input type="text" name="Nachname" size=10 id="Nachname"> <input type="text" name="Vorname" size=10 id="Vorname"> </p> <br> <p><b>Email</b> (wichtig)<br> <input type="text" name="email" size=24 id="email"></p><br /> <p>Strasse<br /> <input type="text" size=24 name="Strasse" id="Strasse"><p/><br /> <p><b>please Ort</b><br> <input type="text" name="please" size=5 id="please"> <input type="text" name="Ort" size=14 id="Ort"> </p> <br /> <p>Versand nach<br /> <select name="Land"> <option selected="selected">Schweiz (CHF 8,-)</option> <option>Europäische Union (CHF 12,-)</option> </select><br /> <br /> <p><input type="submit" value=" Bestellen! "> </form><br /> <br /> <br /> <br /> </body></html> and yeah.ij know...its a quick and dirty mess Quote Link to comment https://forums.phpfreaks.com/topic/134992-simple-post-problem-in-inet-explorer/#findComment-704158 Share on other sites More sharing options...
DeanWhitehouse Posted December 2, 2008 Share Posted December 2, 2008 Fix these errors then re post here. http://validator.w3.org/check?uri=http%3A%2F%2Fwww.thefanshop.ch%2Fbestellen.php&charset=%28detect+automatically%29&doctype=Inline&group=0 Quote Link to comment https://forums.phpfreaks.com/topic/134992-simple-post-problem-in-inet-explorer/#findComment-704173 Share on other sites More sharing options...
rrrrr Posted December 2, 2008 Author Share Posted December 2, 2008 Hi Bladem tahnks a lot, tryin it later! Lots of work to do.. Quote Link to comment https://forums.phpfreaks.com/topic/134992-simple-post-problem-in-inet-explorer/#findComment-704221 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.