Results 1 to 2 of 2

Thread: designing FORMS in html

  1. #1
    Join Date
    Jul 2007
    Posts
    2

    designing FORMS in html

    im a new web designer based in orange county california. im trying to teach myself web design using online tutorials and books.

    im currently building a page using dreamweaver and i have 2 forms on the page. in the first form i want ppl to submit their name, email and then write comments and the SUBMIT button should send all their info to my email.

    *how can i get the form to reset after they submit the form, but make the browser stay on the same page. i want to notoify them that their message has been sent without loading a new page

    on the second form i want them to enter in their name, their friends email addresses and then i already have a comment written for them, its a link to my site. when they hit the SUBMIT button, i want the form to be sent, via email to the addresses that they type into the designated field.

    *how do i do that? do i simply add a hidden field and the in the code instead of 'mailto:example@aol.com' do i somehow point it to send the message to the values in the given box? i.e. 'mailto:'see value of FRIENDS_EMAILS textfield'?

    any help would be appreciated. ive read several online tutorials but they only cover the basics

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    It's definitely a job for PHP; there's a separate board for that if no one answers here.

    edit......

    This shows the sort of thing PHP can do; it sends data to my database and leaves a "Thank You" message on the same page but I'm not good enough with PHP to alter it so that it sends data to an email instead but still leaves the message after clicking the submit button.

    http://www.wickham43.net/formphptomysql.php
    Last edited by Wickham; 18 Jul 2007 at 07:39 AM.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. Help on HTML forms
    By chriscatling in forum General Questions
    Replies: 0
    Last Post: 11 May 2006, 09:27 AM

Posting Permissions

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