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 02-11-2008, 10:07 PM forms
Experienced Talker

Posts: 36
Name: Brett
Location: United States
Trades: 0
lets say i have a form on page form.html and i users to be able to fill out that form and have the outcome of the form onto outcome.html, whats the code for that?

and whats the code for the outcome page?
__________________
-Brett

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by brett35; 02-11-2008 at 10:08 PM.. Reason: changing a word.
brett35 is offline
Reply With Quote
View Public Profile Visit brett35's homepage!
 
 
Register now for full access!
Old 02-11-2008, 11:36 PM Re: forms
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
You need to read up on PHP, because you cant do that with HTML alone.

Heres a good starter tutorial:http://w3schools.com/php/php_get.asp
Truly is offline
Reply With Quote
View Public Profile
 
Old 02-12-2008, 02:59 AM Re: forms
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
A better start is the Zend 101 tutorial for PHP.

However, you don't have to do it with PHP. You can also do it with ASP.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 02-12-2008, 04:13 PM Re: forms
Experienced Talker

Posts: 36
Name: Brett
Location: United States
Trades: 0
oh i thought you could do that with html too, well im in the process of learning php, thanks anyways.
__________________
-Brett

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
brett35 is offline
Reply With Quote
View Public Profile Visit brett35's homepage!
 
Old 02-17-2008, 12:30 PM Re: forms
Average Talker

Posts: 20
Trades: 0
that would be PHP, you can get an example at http://www.tizag.com/phpT/forms.php
__________________
MyPaidHost.com - Cheap Webhosting, Reliable Host, Convenient Setup and Friendly Customer Service.

Please login or register to view this content. Registration is FREE
mypaidhost is offline
Reply With Quote
View Public Profile
 
Old 02-17-2008, 04:28 PM Re: forms
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
This won't display any information about anything whatsoever, but to do it with HTML, you'll need some php in 'outcome.html' and then you'd do this in form.html

Code:
<form action="outcome.html"></form>
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 02-18-2008, 09:07 PM Re: forms
Extreme Talker

Posts: 168
Name: James
Location: Australia
Trades: 0
*** PLAIN HTML IS POSSIBLE *****

HOW
+You need to use the 'get' method in the form.html

+You then use the location.search in the Javascript to then get the form data.

Notes
-You will then need to use Javascript, to both split the location.search string down into its different variables
-The GET method is limited in two ways, there is a limit of 255 chrs, which includes the URL and etc.



HOWEVER,
PHP would be best.
TRANZIT JIM is offline
Reply With Quote
View Public Profile Visit TRANZIT JIM's homepage!
 
Old 02-20-2008, 12:39 AM Re: forms
Junior Talker

Posts: 3
Name: Julia
Trades: 0
HTML Code:
<form method="post" enctype="text/plain" action='mailto:your email address'>
<input type="hidden" name="To" value="your subject for email">
<input type="submit" value="Submit"><img src="spacer.gif" width=5 height=1 alt="spacer"><input type="text" name="question:" size="50" maxlength="100"><br><br>
Put question # 2 here:<br>
<input type="reset" value="Try again"></form>
Simple form sumbit. But for after you sumbit the form and it say something you need to use PHP
JuliaG is offline
Reply With Quote
View Public Profile
 
Old 02-20-2008, 02:35 AM Re: forms
Average Talker

Posts: 20
Name: Corrie
Trades: 0
Sorry, u gotta learn a whole new language. Its a simple one though. PHP
__________________

Please login or register to view this content. Registration is FREE

The Ultimate Free Host Site
Php, 300 MB disk space, 8 GB Monthly transfer, 5 MySQL databases + MORE
awhost.0lx.net is offline
Reply With Quote
View Public Profile
 
Old 02-20-2008, 06:49 AM Re: forms
RadGH's Avatar
Skilled Talker

Posts: 76
Name: Radley
Trades: 0
It's really not difficult with PHP. Just use $_GET and $_POST.

To build the output, just use echo() to output the variables as needed.

This HTML form example should tell you to either use ASP or PHP - Otherwise you're getting over complicated.
http://www.w3schools.com/html/html_forms.asp

Last edited by RadGH; 02-20-2008 at 06:50 AM..
RadGH is offline
Reply With Quote
View Public Profile
 
Old 02-20-2008, 02:04 PM Re: forms
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
Quote:
Originally Posted by TRANZIT JIM View Post
*** PLAIN HTML IS POSSIBLE *****...u then use the location.search in the Javascript to then get the form data.
Javascript != HTML.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 02-21-2008, 04:34 PM Re: forms
Experienced Talker

Posts: 33
Name: Jack
Trades: 0
Quote:
Originally Posted by JuliaG View Post
HTML Code:
<form method="post" enctype="text/plain" action='mailto:your email address'>
<input type="hidden" name="To" value="your subject for email">
<input type="submit" value="Submit"><img src="spacer.gif" width=5 height=1 alt="spacer"><input type="text" name="question:" size="50" maxlength="100"><br><br>
Put question # 2 here:<br>
<input type="reset" value="Try again"></form>
Simple form sumbit. But for after you sumbit the form and it say something you need to use PHP
Very helpfull post! thnks!
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

jacklazara is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to forms
 

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.57990 seconds with 12 queries