lookielookies Posted October 7, 2007 Share Posted October 7, 2007 Hi Let me start by saying I'm an absolute PHP beginner. I was experimenting with a simple POST script, but when I try to submit a form code (like an autoresponder form), on the result page lots of // are added. The code looks like this: <center> <h2>This Is The Title </h2> <br /><br /> <p><center><form method=\"post\" action=\"http://www.aweber.com/scripts/addlead.pl\"> <input type=\"hidden\" name=\"meta_web_form_id\" value=\"********\"> <input type=\"hidden\" name=\"meta_split_id\" value=\"\"> <input type=\"hidden\" name=\"unit\" value=\"ultimateebaykit\"> <input type=\"hidden\" name=\"redirect\" value=\"http://www.********.net/******\"> <input type=\"hidden\" name=\"meta_redirect_onlist\" value=\"\"> <input type=\"hidden\" name=\"meta_adtracking\" value=\"\"> <input type=\"hidden\" name=\"meta_message\" value=\"1\"> <input type=\"hidden\" name=\"meta_required\" value=\"from\"> <input type=\"hidden\" name=\"meta_forward_vars\" value=\"0\"> <table> <tr><td colspan=2><center></center></td></tr> <tr><td>Name:</td><td><input type=\"text\" name=\"name\" value=\"\" size=\"20\"></td></tr> <tr><td>Email:</td><td><input type=\"text\" name=\"from\" value=\"\" size=\"20\"></td></tr> <tr><td align=\"center\" colspan=\"2\"><input type=\"submit\" name=\"submit\" value=\"Submit\"></td></tr> </table> </form></center> <p></p> Is there a way to prevent this? Greetz! Mieke Quote Link to comment https://forums.phpfreaks.com/topic/72139-post-form-code-it-wont-work/ Share on other sites More sharing options...
JasonLewis Posted October 7, 2007 Share Posted October 7, 2007 exactly what do you mean by //? can you please show your results page? Quote Link to comment https://forums.phpfreaks.com/topic/72139-post-form-code-it-wont-work/#findComment-363673 Share on other sites More sharing options...
lookielookies Posted October 7, 2007 Author Share Posted October 7, 2007 http://pleasegoto.com/?r=2lc Quote Link to comment https://forums.phpfreaks.com/topic/72139-post-form-code-it-wont-work/#findComment-363683 Share on other sites More sharing options...
cooldude832 Posted October 7, 2007 Share Posted October 7, 2007 um because you are escaping slashses in a section that isn't php? Quote Link to comment https://forums.phpfreaks.com/topic/72139-post-form-code-it-wont-work/#findComment-363687 Share on other sites More sharing options...
JasonLewis Posted October 7, 2007 Share Posted October 7, 2007 yeh you only need to escape if its in an echo statement. like so: echo "<a href=\"http://www.site.com\">A site</a>"; Quote Link to comment https://forums.phpfreaks.com/topic/72139-post-form-code-it-wont-work/#findComment-363702 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.