Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6

Thread: email forms...

  1. #1
    Member Nickhead's Avatar
    Join Date
    Jul 2003
    Location
    Pittsburgh, PA
    Posts
    81
    Member #
    2221
    Hello everyone,

    I am trying to have a form email me which radio button a user chooses. I have a simple listing of 10 radio buttons, 1 to 10, and would like to have a form emailed to a specific email address telling me which number was selected.

    Can i do this WITHOUT using the mailto approach?

    I would like the user to be able to simply select a radio button and have it send me the result, preferably without having to click a "send" button. I would also like the user to be redirected to another specific url after clicking the radio button.

    I'm good with html, but terrible with java...

    Thanks everyone in advance,
    -nick
    Nickhead
    musicpitt.net

  2.  

  3. #2
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    139 times
    You'll have to do it with some CGI, which your host needs to support.
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  4. #3
    Senior Member nsr81's Avatar
    Join Date
    Oct 2002
    Posts
    1,132
    Member #
    250
    Liked
    15 times
    an iframe, some simple onClick behaviors, and a cgi/php script to accept the data should let you get the results withouth having to use a "submit" button.
    There and Back Again :Ogre:

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Everyone here is right. What you're looking for from the non-mailto point of view would require a server-side programming language (which JScript isn't). JScript can handle the whole issue of selecting the email address and having the form submitted onClick: however, I'd personally still use a submit button because if you have a list of 10 radio buttons and some yutz clicks the wrong one, bang! His/her form is submitted to the wrong email address.

    In order to redirect the user to another URL (such as the one housing your server-side language script), simply use the action tag for your form to send them there. e.g.
    Code:
    <FORM ACTION="formprocessingscript.cgi" method="post" name="BillyRandyFreddyJoeFloydBobForm">
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  6. #5
    Member Nickhead's Avatar
    Join Date
    Jul 2003
    Location
    Pittsburgh, PA
    Posts
    81
    Member #
    2221
    thanks everyone

    Thanks everyone,

    This is what i was afraid of, having to learn php or mySQL or whatever that might be. My ultimate goal was to have a sort of "hot or not" type voting system set up, so i guess there is no way around it. Could someone point me in the right direction on where to get quality information/tutorials for using php?

    Thanks again,
    -nick
    Nickhead
    musicpitt.net

  7. #6
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    May I direct you to this tutorial written by filburt1...
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:33 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com