SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict Normal75's Avatar
    Join Date
    Oct 2001
    Location
    Vancouver, Canada
    Posts
    245
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    simple form script - need clear eyes

    hello,
    i have a form script,

    1. form.html
    2. preview.php
    3. mail.php

    when i input all the fields in form.html, i click submit to go to preview.php. On preview page, if the user makes mistake, he is allow to go back to form.html to edit the information, however, my edit button doesnt seem to work, everytime when i click back, it goes to mail.php and send email out. Not too sure what i did wrong.

    here is the code in preview.php

    PHP Code:
    <form name="freequote" method="post" action="services_design_mail.php" 
    onSubmit="MM_validateForm('name','','R','email','','R');return document.MM_returnValue">
     
    <b>Name:</b><?php echo $name ?>
    <b>E-mail:</b><?php echo $email ?>

    <input type="submit" name="Back" value="&lt;Edit" onClick="MM_goToURL('parent','javascript:history.back(1)');return document.MM_returnValue">
    <input type="submit" name="Submit" value="Submit&gt;" >
    </form>
    Anybody see the problem? please point it out ,
    thank you
    ~It will come to me one day~

  2. #2
    SitePoint Addict Normal75's Avatar
    Join Date
    Oct 2001
    Location
    Vancouver, Canada
    Posts
    245
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    problem solved!
    thanks
    ~It will come to me one day~


Bookmarks

Posting Permissions

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