O'Reilly logo

Railo 3 Beginner’s Guide by Mark Drew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - getting FORM variables

Let's look at a simple form and check out what gets sent:

  1. Create a file in your application by the name contact.cfm and create a simple HTML page within this file:
    <!DOCTYPE html >
    <html lang="en">
    <head>
    <title>Contact Form</title>
    </head>
    <body>
    <h1>Contact Us</h1>
    <form action="contact.cfm" method="post">
    <p>
    <label for="name">Name</label><input type="text" name="name">
    </p>
    <p>
    <label for="email">Email</label><input type="email" name="email" >
    </p>
    <p><input type="submit" value="Send"></p>
    </form>
    </body>
    </html>
    

    Now, if you load this template in your browser, you should see the following:

    Time for action - getting FORM variables
  2. This form posts ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required