automatically submit data into HTML form

March 17, 2011 at 07:35:54
Specs: Windows XP
I'm looking to have some code so that when a user clicks on a link within a newsletter it automatically submits unsubscribe data to a sever using (without them having to also click on Submit button. See following code:

<body>
<noscript>
<center>
<form action='http://crm.zoho.com/crm/Unsubscribe?encoding=UTF-8' method='post'>
<input type='hidden' name='xnQsjsdp' value='x15zzpFa7yc$'/>
<input type='hidden' name='actionType' value='dW5zdtttaazY3JpYmU='/>
<input type='hidden' name='returnURL' value='http://domain.com/contact/optout-exit.htm' />
<input type="hidden" name='email' value='name@domain.com' />
<input type='submit' value='Unsubscribe'/>

</form></center>
</noscript>
</body>

Question is now do this without the Submit button and only using the a link within the newsletter.

Mark


See More: automatically submit data into HTML form

Report •


#1
March 18, 2011 at 03:50:04
One way to do this is to use a javascript "onload" method to automatically post the form. Have a look at this thread.

Report •
Related Solutions


Ask Question