Forum Moderators: coopster

Message Too Old, No Replies

How To Autopost Get String

         

p33h

12:20 pm on May 14, 2009 (gmt 0)

10+ Year Member



Hi guys,

Your help would be really appreciated.

I've got a normal form from PayPal - user
fills his email and name, click on the button
and is redirected to the PayPal - email
and his name pre populate fields on PayPal website.

I would like to put a script in between, so
it would catch eamail and name, and invisibly
add this user to my mailing list at Getresponse.com,
and then normally redirect user to PayPal.

Getresponse API need to send this string by GET to
add a subscriber to my list:

http://www.example.com/ModOptIn/PublicSubscription?api_id=#*$!#*$!XX&email=my@email.ad
dress.com&campaign=myGetresponseCampaign&ref=123&name=John

How should I do it? Is is possible to add a script
to a form page which would automatically send the API, or the form page should redirect user to the next page
with script with API and then redirect?

Do you guys could give me an example code which
is able to generate GET string and post it as above?

Thanks!

[edited by: dreamcatcher at 12:57 pm (utc) on May 14, 2009]
[edit reason] use example.com. Thanks. [/edit]

nayes84

12:41 am on May 15, 2009 (gmt 0)

10+ Year Member




<form action="http://www.example.com/ModOptIn/PublicSubscription" method="get">

<input type="hidden" name="api_id" value="#*$!#*$!XX" />

<input type="text" name="email" value="my@email.ad
dress.com" /><br />
<input type="text" name="campaign" value="myGetresponseCampaign" /><br />
<input type="hidden" name="ref" value="123" />
<input type="text" name="name" value="John" /><br />
<input type="submit" value-"Submit" />
</form>