Jump to content

php help! pls


adredz

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.