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. 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:

  <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=""></script>

If this form is set to redirect the user to when the form is posted, whatever the user entered in the "name" field will be returned as GET parameters like this:

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