redirect parameters

From JustHumans

Jump to: navigation, search

Redirect parameters let you pass fields from the form being submitted to the redirect URL. In other words, you can get data posted to the form to show up on the "Thank You" page.

JustHumans.com 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 when being sent to your redirect URL. For example, consider the following form:

<html>
 <head>
  <title>Contact</title>
 </head>
 <body>
  <h1>Contact Us!</h1>
  <form method="post">
   <input type="hidden" name="redirect" value="parameters:name" />
   Name: <input type="text" name="name"><br />
   Comments:<br />
   <textarea name="comments"></textarea><br />
   <script language="JavaScript" src="http://verify.justhumans.com/verification.js?k=a1b2c3"></script>
  </form>
 </body>
</html>

If this form is set to redirect the user to www.example.com/thanks.html when the form is posted, 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" />

Any number of fields can be returned as parameters to your redirect URL but care should be taken to not overload the URL line with unnecessary data.

Personal tools