| | #1 |
| HyperActive Warrior War Room Member Join Date: 2010
Posts: 160
Thanks: 3
Thanked 10 Times in 10 Posts
|
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! |
| | |
| |
| | #2 |
| Prosper 202 Expert War Room Member Join Date: 2006 Location: Pasadena, CA, USA
Posts: 129
Thanks: 29
Thanked 78 Times in 31 Posts
|
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. |
| |
| The Following User Says Thank You to Stephen Carter For This Useful Post: |
| | #3 |
| Magento Certified War Room Member Join Date: 2007 Location: Dayton, OH, USA
Posts: 291
Thanks: 38
Thanked 209 Times in 23 Posts
|
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 | |
| |
| | #4 |
| Warrior Member Join Date: 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
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. |
| |
|
| Bookmarks |
| Tags |
| aweber, form, list, php or mysql, submission, update |
| |