Include Form Field Contents when Redirecting Users

2 views
Skip to first unread message

Anders

unread,
Nov 3, 2008, 7:41:44 PM11/3/08
to JustHumans
Now you can include info that a user typed into a form on your "thank
you" page. JustHumans now accepts an optional "redirect" parameter. If
it's value starts with "parameters:" and includes field names from
your form, those fields will be returned to your user as "GET"
parameters. For example, consider the following form:

<form>
<input type="hidden" name="redirect" value="parameters:name">
name: <input type="text" name="name"><br>
email: <input type="text" name="email"><br>
<script language="JavaScript" src="http://verify.justhumans.com/
verification.js?k=a1b2c3d4..."></script>
</form>

Lets say that this form is set to redirect the user to "http://
www.example.com/thanks.html" when the form is posted. In this example,
whatever the user entered in the "name" field will be returned as GET
parameters like this:

http://www.example.com/thanks.html?name=Joe+Blow

You can include as many parameters as you need by using commas:

<input type="hidden" name="redirect" value="parameters:name,email">

Thanks to Glen S. and others for nudging me on this one!

I should get sick more often... :)

-Anders
Reply all
Reply to author
Forward
0 new messages