Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 9th Jun 2011, 03:56 AM   #1
HyperActive Warrior
War Room Member
 
Join Date: 2010
Posts: 160
Thanks: 3
Thanked 10 Times in 10 Posts
Default
Update AWeber list upon PHP/MySQL form submission...
Share on: 
fb share twitter share gplus share more share

Hi

On my site I would like a form with fields like name, location, mobile number, email address etc.

Upon submission, I would like the email field to update to an AWeber list, as well as updating a MySQL table. So do two things in one submission.

How possible/easy is this?

Thanks!


https://www.letscommence.com/ - better logo design briefs for designers
joetann is offline  
Unread 9th Jun 2011, 04:40 AM   #2
Prosper 202 Expert
War Room Member
 
Join Date: 2006
Location: Pasadena, CA, USA
Posts: 129
Thanks: 29
Thanked 78 Times in 31 Posts
Default
Re: Update AWeber list upon PHP/MySQL form submission...
Share on: 
fb share twitter share gplus share more share

well, updating the MySQL database is straightforward, right?

so instead of forwarding to Aweber you send the collected data to your script and update the database. then the only thing left to achieve is the Aweber submission.

for this, all you need to do is add to your output page a 1x1 pixel frame with no border that will receive the submitted Aweber form, remove the submission element from the form, and then trigger the submission by adding some javascript to the <body> element like so:

<body onload="document.forms.autosubmit.submit();">

this triggers the form submission after the page is loaded. your Aweber form would be named autosubmit (in this instance) and you would put into it a target attribute that points to the frame:

<iframe name="autoframe" frameborder="0" width="1" height="1"></iframe>
<form method="post" action="http://www.aweber.com/scripts/addlead.pl"
name="autosubmit" rel="nofollow" target="autoframe"
>
...
</form>

the form contents are just the regular Aweber form elements with the name and email address added, and every form element is expressed as a "hidden" field so that it does not appear on the page.

that's it. i'll leave you to experiment with it, but that's how i do it. works well.
Stephen Carter is offline  
The Following User Says Thank You to Stephen Carter For This Useful Post:
Unread 9th Jun 2011, 05:48 AM   #3
Magento Certified
War Room Member
 
ryanstreet's Avatar
 
Join Date: 2007
Location: Dayton, OH, USA
Posts: 291
Thanks: 38
Thanked 209 Times in 23 Posts
Default
Re: Update AWeber list upon PHP/MySQL form submission...
Share on: 
fb share twitter share gplus share more share

Aweber passes form data via GET to the thank you page of your choice. You can always do it that way.

1. Enable it to pass data:
How Do I Pass Form Data to My Thank You Pages? :: AWeber Knowledge Base

2. Write the MySQL scripting into the thank you page.

3. Display final thank you or redirect to thank you page.

4. ...

5. Profits. Easy!

Ryan Street
PHP Developer Specializing in WordPress and Magento
ryanstreet is offline  
Unread 26th Feb 2014, 02:52 PM   #4
Warrior Member
 
Join Date: 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Update AWeber list upon PHP/MySQL form submission...
Share on: 
fb share twitter share gplus share more share

Very Easy as long as Aweber Doesn't Go down as it has this week several times.

I'm changing ALL of my funnels to backside Submission using Iframes, and javascript, and not keeping Aweber in the process loop.
tunajim70 is offline  
Closed Thread


Bookmarks

Tags
aweber, form, list, php or mysql, submission, update


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 05:59 AM.