Topics Map > Communication & Collaboration > Email & Calendaring
Topics Map > Communication & Collaboration > Website Services

How do I redirect URLs in FormMail?

This article details how to redirect to different URLs upon form submission in FormMail.

In this example, FormMail redirects the submitter to different URLs upon form submission. Try a demo.


<head><title>Just testing</title></head>
<form method="post" action="">
<h1>Example of FormMail 3.0</h1>
This example shows the use of url re-directing.
<input type=radio name="radbut" value="ac">
Select list of academic programs
<input type=radio name="radbut" value="units">
Select list of campus units.
<input type="submit" value="Submit your comments">

Configuration file

<!DOCTYPE form SYSTEM 'FormMail-3.0.dtd'>
<form name="example4" >

 <!-- This prevents any mail being sent for this example -->

<mail name="mail1" nomail >

 <!-- Here's the html response header. 
      Note that the <response> sections are evaluated
      in order.  As soon as a url redirection is triggered,
      that's it.  But if something is printed to the screen,
      no more url redirections are considered.

<response name="r0" if="$radbut eq ac" url="">

<response name="r1" if="$radbut eq units" url="">

  <!-- By this point, url redirection must have failed.  So we
      now generate the full html page, including
      the <html>...</html> tags 

<response name="r2" >
<h1>Hey, You!</h1>
You didn't make a selection!


Keywords:mail, form, code, script, direct   Doc ID:91750
Owner:Radhika R.Group:University of Illinois Chicago Technology Solutions
Created:2019-05-15 08:02 CSTUpdated:2019-06-11 12:27 CST
Sites:University of Illinois Chicago Technology Solutions
Feedback:  0   0