Hi,
Can anybody point me in the right direction…?
I am setting up a Getresponse email opt-in form for my members to use.
I’m trying to use PHP to insert their webform ID’s dynamically.
The webform ID’s start off in the URL (mysite.com/?id=12345) and I can successfully cookie this and out put the value on a different part of the page…
However, the form doesn’t work because I cant get the cookie to echo.
(The form works fine with the webform ID as normal)
Maybe my syntax is wrong or maybe its a known thing that this isn’t possible within a form.
My PHP knowledge is pretty much non-existent!
<form action="https://app.getresponse.com/add_subscriber.html" accept-charset="utf-8" method="post">
Name: <input name="name" type="text">Email: <input name="email" type="text">
<input name="campaign_token" value="<?php echo $_COOKIE['id']; ?>" type="hidden">
<input value="Sign Up!" type="submit">
</form>