Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 12-24-2007, 08:42 PM Form Help
Average Talker

Posts: 23
Name: Thomas
Location: Alberta, Canada
Trades: 0
Here is my ultimate goal with this form:

I want people to be able to come to my website, select an option from a dropdown menu, and then click submit. This "submit" will bring up a form to fill out (name, address, etc.) I want the option they selected to be included in the form that pops up.

I have the form ready, I just need to know how to get the form to include the option the person selects.

Thanks!
thomashw is offline
Reply With Quote
View Public Profile Visit thomashw's homepage!
 
 
Register now for full access!
Old 12-24-2007, 09:55 PM Re: Form Help
Ultra Talker

Posts: 256
Location: Auckland, New Zealand
Trades: 0
The drop down is a form, and should have some sort of "processing script" to control what it does with the information used. HTML alone isn't capable of processing forms which is why other languages were designed to add interactivity to websites.

So if I had just the basics of a form:

Code:
<form action="process.php" method="post">
  <fieldset>
    <select id="choice" name="choice">
      <option label="Choice 1" value="1">Choice 1</option>
    </select>
    <input type="submit" id="submit" name="submit" value="Next" />
  </fieldset>
</form>
Whatever I write in process.php will control how this form is handled. I only have the one choice, which is Choice 1, selecting this, sets the value for the select id/name, e.g. choice=>1, so I can choose how to handle this information, which could mean passing it to another page with a form and adding that information to the form.

Basically, you'll need some sort of script to process your form, PHP, ASP, CGI are just a few languages capable of doing this. Just research more into Server Side Languages. You could also do it client side using Javascript but the alternative languages are preferred.


Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 12-26-2007, 07:39 PM Re: Form Help
Average Talker

Posts: 23
Name: Thomas
Location: Alberta, Canada
Trades: 0
I do already have a form which controls what the information that's entered does. I just needed help "copying" what the user inputs.

I figured it out though, I used <? echo $_POST['name'] ?>
thomashw is offline
Reply With Quote
View Public Profile Visit thomashw's homepage!
 
Reply     « Reply to Form Help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20801 seconds with 12 queries