28 users online (1 members and 27 guests)  

Thread: forms


  Results 1 to 6 of 6

Related

  1. Forms    Forum: HTML Forum
    Replies: 6
  2. Sub forms    Forum: HTML Forum
    Replies: 2
  3. Forms    Forum: HTML Forum
    Replies: 3
  4. Help with forms please....    Forum: HTML Forum
    Replies: 1
  5. Forms    Forum: HTML Forum
    Replies: 1
  1. #1
    seph42's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2002
    Posts
    10

    forms

    Hey I have two questions
    First, I have made a few forms and placed buttons at the bottom of the page. I was wondering if it was possible to, when the submit button is pressed, send the information to an e-mail address. If so, what is the scripting?
    Second, is it possible to send the info to another page and have it displayed like a guestbook for all to see. I've looked at the guestbook HTML source but i can't see how they make the info appear on the page once submitted, please help
    Seph42

  2. #2
    seph42's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2002
    Posts
    10
    One more question, what is the scripting so that when a certain option is selected from the pull down menu it goes to a certain page. For example if option 1 is picked (Music) it goes to the music page whilst if option 2 is picked (stories) it goes to the story page.

  3. #3
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hello mate.

    To see how to redirect a user to a page when they choose from a drop-down box, then view the source on this page, its right there.

    To start processing forms, you need a server side language such as PHP, Perl or ASP.Net.

    For some free scripts, try http://www.hotscripts.com .

    If you want to learn about making your own scripts, then I recommend starting with PHP. Its the best, and is the most accessible. Try http://www.php.net
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  4. #4
    Doorknob's Avatar
    Super Newbie

    Status
    Offline
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    316

    RE: Forms

    to send the results of a form to an email address, use a scripting language, like CGI, Perl. make sure your host's server supports it.

    to display the results of a form, u also have to use a scripting language, ASP is good for that, and really easy to learn as well. try http://www.asp101.com or just use google to search for tutorials.

  5. #5
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    You may want to check out the pull down menu link on the left also.

    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  6. #6
    Doorknob's Avatar
    Super Newbie

    Status
    Offline
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    316

    RE

    //in <head> add this

    function MM_jumpMenu(targ,selObj,restore){
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
    }

    //for frames, change main to frame name (in <body>)
    <select name="select" onChange="MM_jumpMenu('parent.frames[\'main\']',this,0)">
    <option value="url_here">name_of_option</option>
    </select>

    //for non-frames add this (in <body>)
    <select name="select" onChange="MM_jumpMenu('parent.frames[\'_self\']',this,0)">
    <option value="url_here">name_of_option</option>
    </select>
    Last edited by Doorknob; 07-01-2002 at 08:37 PM.



Tags for this Thread