Announcement

Collapse
No announcement yet.

HTML Forms

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTML Forms

    i want to make a form that i can fill out then click submit and it will make a page depending on how i filled out the form EG:

    i have a form with 3 fields

    To.........
    From........
    E-Mail.......

    then when i fill out those fields it will make a page without text fields just text (if u have no idea what i mean i don't blame u!)

    can u guys help??

    DeanB


  • #2
    In php, this is as easy as, well, anything.

    Your form page would consist of the following lines:

    Code:
    <form action="my_form.php" method="post">
    <input type="text" name="to">
    <input type="text" name="from">
    <input type="text" name="email">
    </form>
    Then you would make a file called my_form.php as referenced above with the following code:

    Code:
    <?
    echo = "$to";
    echo = "$from";
    echo = "$email";
    ?>
    That is very rough - but I think you can figure out the general principle. I don't thunk this is possible using straight HTML - since HTML doesn't have variable tracking capabilities. FYI-it would be similar in Perl.

    -jim
    "The dot-com bust has cleared out the carpetbaggers and left the Internet to those who really care about it"
    - Jon Ippolito, new-media curator, Guggenheim Museum

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X