adredz Posted March 4, 2010 Share Posted March 4, 2010 here's the scenario: I have a aweber optin. Once a visitor opts in, I wan't him to be redirected to my customized page with his name on it instead of the usual aweber audio page. I know how to display his name via php form, however I don't know how to integrate the script to aweber. I understand the optin code but I can't seem to figure out how to pass the value of name to my php script and let the optin do its thing at the same. Is there such a way to have two actions in one click of submit button? Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/194145-php-help-pls/ Share on other sites More sharing options...
adredz Posted March 4, 2010 Author Share Posted March 4, 2010 I made a code based on the info I collected from google. Here it is: <form method="post"> Name: <input type="text" name="name" /> Email Address: <input type="text" name="email" /> <input type="button" value="Send" onclick="submitTwice(this.form)"> </form> <script type="text/javascript"> function submitTwice(f){ f.action = 'welcome.php'; f.target='name'; f.submit(); f.action = 'http://www.blank.com/blank.php'; f.target='name'; f.target='email'; f.submit(); } </script> However it doesn't to work. Could please tell me what's wrong?Pls... Thanks! Link to comment https://forums.phpfreaks.com/topic/194145-php-help-pls/#findComment-1021716 Share on other sites More sharing options...
adredz Posted March 5, 2010 Author Share Posted March 5, 2010 any help pls???? Link to comment https://forums.phpfreaks.com/topic/194145-php-help-pls/#findComment-1021808 Share on other sites More sharing options...
zacourie Posted March 5, 2010 Share Posted March 5, 2010 adredz, You're using Javascript in your form, not PHP. Check out this tutorial on making PHP forms: http://www.tizag.com/phpT/examples/formex.php Hope that helps. Link to comment https://forums.phpfreaks.com/topic/194145-php-help-pls/#findComment-1021820 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.