dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Newbie needs help with forms

  1. #1
    Join Date
    Jan 2006
    Posts
    1

    Newbie needs help with forms

    Hi, I am very new and really trying hard to get this to work. I used MS Office 2000 Publisher to originally design a site. The last page (the contact us page) has a form for customers to fill out. The submit button (I thought) was set to send an email to our sales person...First, I don't think it is sending the information in an email to our sales guy, secondly, after "submit" is clicked, the person is redirected to "HTTP404" page...whatever that is. explorer.

    #1...How do I get the viewer to be redirected back to the index.html page?

    #2...How do I get the information on the form sent to the sales guy?

    Please, any help asap is appreciated.

    Have a nice evening!

    Tracy Keller

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    You require a formmail script on the server. Your provider will usually have one available for you.

  3. #3
    Join Date
    Jan 2006
    Location
    Arizona
    Posts
    2
    Here is a basic contact form. fill in the path to formmail script (your provider will have this information) and the recipient email address and you should be good to go. The redirect input will redirect them to whatever page you specify once they click submit in your case index.html. The reason you get a HTTP 404 error (page not found) is more than likely you have not specified a redirect page.

    <FORM name="contact" method="post" action="http://www.yourdomain.com/cgi-sys/formmailscript">
    <INPUT type="hidden" name="recipient" value="user@yourdomain.com">
    <INPUT type=hidden name="redirect" value="http://www.yourdomain.com/index.html">
    <P>
    <LABEL>Name:&nbsp; </LABEL>
    <INPUT type="text" name="name" size="30">
    </P>
    <P>
    <LABEL>E-Mail: </LABEL>
    <INPUT type="text" name="email" size="30">
    </P>
    <P>
    <LABEL>Phone: </LABEL>
    <INPUT type="text" name="phone" size="30">
    <FONT size="1">(optional) </FONT></P>
    <P>
    <P>
    <LABEL>Question/Comment:</LABEL>
    <BR>
    <TEXTAREA rows="2" name="comment" cols="30"></TEXTAREA>
    </P>
    <P>
    <INPUT type="submit" value="Submit" name="B1">
    <INPUT type="reset" value="Reset" name="B2">
    </P>
    </FORM>
    Last edited by rosembolin; 01-05-2006 at 04:06 AM.

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