Results 1 to 3 of 3

Thread: forms and cgi

  1. #1
    Join Date
    Feb 2007

    forms and cgi

    Ugh I'm having such an annoying time with this. I'm a novice when it comes to forms. I admit i stole some code to make a multiple page form, and I am trying to set it up with my cgi bin first before altering the code and customizing it the way I want it. There is supposed to be two parts to the form, the first page you fill out, then you go to a second form to fill out, then that information is supposed to be sent to me and there's a page that reviews everything entered. BUT, the code skips the second form and jumps right to the review page and a lot of the review stuff is actually code. ??? Here's where it's at:

    click on the form to make it run.

    Here's my code:

    <title>Sample Multiple Page Form</title>

    <body bgcolor="white" text="#000000" link="#0000CC" vlink="#0000CC" alink="#0000CC" marginwidth=0 marginheight=15 topmargin=15 leftmargin=0>

    <center><table width=450 bordercolor=black border=1 cellpadding=3 cellspacing=0>
    <tr bgcolor="#CC6600">
    <td colspan=2><font face="arial" size=2 color="White"><b>
    Form Manager allows you to create
    multiple page forms that allow you to go back and forth between
    pages. Data entered is not lost during this process. Any HTML form
    can be created and customized to be processed by Form Manager.


    <table width=450 align=center>
    <tr><td><font face="arial" size=2>Current Date / Time </td><td><font face="arial" size=2>: Monday - February 12th, 2007 - 14:45:00</td></tr>
    <tr><td><font face="arial" size=2>Users IP Address</td><td><font face="arial" size=2>:</td></tr>
    <tr><td><font face="arial" size=2>Users Host Name </td><td><font face="arial" size=2>: 117-186-68-0.dhcp.mdfd.or.charter.com</td></tr>

    <form action="http://www.bluehost.com/bluemail" enctype="multipart/form-data" method="POST">
    <input type="hidden" name="sendtoemail" value="mike@waldronforest.com">

    <input type=hidden name="next_page" value="Multiple_Page_b">
    <input type=hidden name="required" value="name:Name Required,email:e-Mail Address Required">
    <input type=hidden name="current_page" value="Multiple_Page_a">
    <input type=hidden name="form" value="2">
    <input type=hidden name="start" value="1">

    <table width=450 cellpadding=4>
    <tr bgcolor="#CC6600">
    <td colspan=2><li> <font face="arial" size=4 color="White"><b>Sample Multiple Page Form - (Page #1)</font>

    <td colspan=2> <font size=2 face="arial" color=red>


    <tr><td><font face="arial" size=2> Your Name: </td><td><input type=text name="name" value="" size=30> </td></tr>
    <tr><td><font face="arial" size=2> Email Address:</td><td><input type=text name="email" value="" size=30></td></tr>

    <tr><td colspan=2><br><input type="submit" name="next" value="Continue >>"></td></tr>



    How do I fix this?

  2. #2
    Join Date
    Dec 2005
    The above HTML is uninteresting without the CGI script. Post that and we can tell you the problem.

  3. #3
    Join Date
    Nov 2006
    Nursing Home
    you really need to look at your code most of what you have in there died and was made depreciated about 10 years ago.

    <center> = dead
    <font> = dead
    all your styling which is in your html is depreciated.

    attributes values should always be quoted ""

    showing us the HTML is useless and personally i would use a more dynamic language for multipage forms (but then again i'm not a fan of perl)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles