War Room

Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Featured Warrior Special Offer...
"Members Of The *War Room* Discover Secrets To Immediate Success!"
Reply
 
LinkBack Thread Tools
Old 10-29-2009, 07:39 PM   #1
HyperActive Warrior
War Room Member
 
Join Date: Oct 2008
Location: Canada
Posts: 408
Thanks: 10
Thanked 65 Times in 43 Posts
Default Anyone know how to auto-submit a form?

Hi guys,

I'm hitting a brick wall and can't make this work. I want to be able to automatically add buyers to my customer list.

I have figured out how to get ClickBank to pass name and email back to my thank you page and I can use PHP to request the variables and echo them on a test page. That's all cool.

I can create a form and have the variables show up in the form. So everything is good, except I can't get the automatic submission to work.

This code is supposed to work:

Code:
<script type="text/javascript" language="JavaScript"><!--
document.FormName.submit();

//--></script>
Any ideas what might be going wrong? As a test I'm using my standard aweber form, but I'm adding in the form name="MyForm" since the form needs a name in order for the javascript to autosubmit.

It's just not working ... and I'm really scratching my head on this one.

My WSO: Use HYPNOSIS to DRIVE YOUR RESULTS--> Click Here

Affiliates Earn 75% promoting my audio course for dealing with
the Terrible Twos and beyond

The best Self Hypnosis CDs on the planet
Chris Thompson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-29-2009, 11:39 PM   #2
Peace Room Member +
War Room Member
 
Voon's Avatar
 
Join Date: Oct 2009
Location: The World Is Flat
Posts: 21
Thanks: 2
Thanked 1 Time in 1 Post
Default Re: Anyone know how to auto-submit a form?

From what I see in your javascript, there's nothing to trigger the .submit() function.

How about
HTML Code:
<script type="text/javascript" language="JavaScript"><!--
window.onload = autosubmit;
function autosubmit() {
document.FormName.submit();
}
//--></script>
But still, is this the best way to add customer to your list?
If customer don't have javascript enabled, the auto submit function will fail.
Or if customer closed their browser before entering thank you page, then you would missed the data.

Aweber has another way of receiving Clickbank payment notification then auto process customer detail to your list.
Sorry, I can't post URL yet. So, do a search for 'How Do I Integrate Clickbank' in their knowledge base to find out.

=)
Voon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-30-2009, 12:09 AM   #3
Site Flipper's Right Hand
War Room Member
 
Join Date: Jan 2004
Location: San Jose (Silicon Valley), CA , USA.
Posts: 4,383
Blog Entries: 1
Thanks: 67
Thanked 91 Times in 59 Posts
Social Networking View Member's Twitter Profile 
Default Re: Anyone know how to auto-submit a form?

if you are doing this for a product you are creating, it would be worth doing ... otherwise, there are products like dlguard and easyclickmate that will take care of this for you...

Live JoyFully!

Judy

zapseo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-30-2009, 02:17 AM   #4
Active Warrior
War Room Member
 
Join Date: Oct 2009
Posts: 67
Thanks: 6
Thanked 9 Times in 7 Posts
Default Re: Anyone know how to auto-submit a form?

Your code should be working.

I would check the JavaScript error console in your browser. This should give you some insight in to why it's not working.
RichPirate is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-30-2009, 02:14 PM   #5
HyperActive Warrior
War Room Member
 
Join Date: Oct 2008
Location: Canada
Posts: 408
Thanks: 10
Thanked 65 Times in 43 Posts
Default Re: Anyone know how to auto-submit a form?

Hi everyone,

Thanks for the suggestions.

1) I use DLGuard and aweber. I know that DLGuard can send a purchase notification to the aweber list address and aweber can parse the email. It sorta works and only a portion of customers bother to click on the confirmation link.

2) I'm planning to auto-remove people from my prospect list when they become customers. This way they never again get a promotion to buy a product they already own. This is why I want to be sure they are on my list.

Thanks for the comment about javascript being disabled, and how that would hurt my objective.

My WSO: Use HYPNOSIS to DRIVE YOUR RESULTS--> Click Here

Affiliates Earn 75% promoting my audio course for dealing with
the Terrible Twos and beyond

The best Self Hypnosis CDs on the planet
Chris Thompson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-12-2009, 11:28 AM   #6
Lisa Dozois
War Room Member
 
lisag's Avatar
 
Join Date: Jan 2006
Location: Florida, USA.
Posts: 316
Thanks: 39
Thanked 108 Times in 44 Posts
Default Re: Anyone know how to auto-submit a form?

Auto submit form using php

-- Lisa G
>> Best Under $5 Christmas Treat For Kids http://hohohomail.com
#1 Rated Copywriter On RentACoder
www.lisa.myfreelanceportfolio.com
Check out my WSO: http://tinyurl.com/lvkjq9
lisag is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-15-2009, 02:13 PM   #7
Senior Warrior Member
War Room Member
 
Jay Jennings's Avatar
 
Join Date: May 2003
Location: Everywhere , USA.
Posts: 1,005
Thanks: 23
Thanked 54 Times in 28 Posts
Default Re: Anyone know how to auto-submit a form?

Quote:
Originally Posted by Chris Thompson View Post
Hi guys,

Code:
<script type="text/javascript" language="JavaScript"><!--
document.FormName.submit();

//--></script>
Any ideas what might be going wrong? As a test I'm using my standard aweber form, but I'm adding in the form name="MyForm" since the form needs a name in order for the javascript to autosubmit.
If you really named your form "MyForm" then that's your answer -- you're not telling MyForm to submit, you're telling FormName to submit.

Jay Jennings


Stop Spinning Your Wheels And Discover The Real Secrets!
Article Marketing Power Tips - Free Report
(There's More To Life Than Submitting To Article Directories!)
Jay Jennings is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
autosubmit, form

Thread Tools

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:42 AM.