Is there a way to include the user's email as ?Param for signup form?

This is related to the question I just asked:

If I know the user's email address and am just confirming (I just imported them from our customer list) and I want to have an easy "click here to continue subscribing"  I could launch your signup page but with their email address and name *prefilled*

JohnP JohnP, 2 years ago

You could do this with URL params. You'd just need your own signup page with some PHP to fill that form field if the param exists. Just go to the 'grab the code' section in CM and do some editing.

If you link to your signup page (signup.php in this example) :

http://www.yoursite.com/signup.php?email=subscriber@gmail.com&name=Subscriber

Then your signup.php page should look something like this:

<?php
// if the url param exists, set as $email/$name, else set it to blank
$email = isset($_GET["email"]) ? $_GET["email"] : '';
$name = isset($_GET["name"]) ? $_GET["name"] : '';
?>

...
<form>
<!-- putting params into textareas -->
<textarea id="fieldEmail" name="cm-(something)" value=""><?php echo $email; ?></textarea>
<textarea id="fileName" name="cm-name" value=""><?php echo $name; ?></textarea>
</form>
...

I've omitted the rest of the html and form, but that is all you need to add to your page for simple pre-populating of form fields via URL parameters.

Debut1978, 2 years ago

If you know the email just add the email box with php and fill the value from php

<input type="text" name="email_adress" value="<?php echo $emailadress;?>" />

_____
Spiderman Games

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098