Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
Thread: Html form help
01-26-2005, 10:48 PM #1
- Join Date
- Jan 2005
- Thanked 0 Times in 0 Posts
Html form help
I have decided to create an aup for a network setup and i have created a small html page i have little experience with forms and would like some assistance if possible.
here is the code
<p>If you agree to these terns and conditions check the box and click submit.</p>
<form name="form1" method="post" action="http://www.yahoo.co.uk">
<input type="checkbox" name="checkbox" value="checkbox">
I agree to the terms and conditions</p>
<input type="submit" name="Submit" value="Submit">
Basically I want to link the checkbox and the submit button together so that they cannot continue without selecting the box and then it forwards them onto a site for instance www.yahoo.co.uk. If at all possible I would like a prompt if they do not check the box basically stopping them from going anywhere but the page until the accept the policy which i will put it once i get the form working correctly. Im new it may look stupid but i dont have much html experience so any help or suggestions would be greatly appreciated.
not wanting too much maybe i could also add a field where the username must be put in and gets sent in file to an email address or a log file would be handy if this is possible!!
01-26-2005, 11:33 PM #2
- Join Date
- Nov 2003
- Minneapolis, MN
- Thanked 65 Times in 56 Posts
Hi Bud, welcome to the forums...
For something like this it'd honestly be easier to ask Google, then you could get something to copy and paste, unless you'd like to learn more.
If you have any questions about the html of your forms in particular, though, I'd be glad to help
01-26-2005, 11:34 PM #3
- Join Date
- Dec 2004
- the U.S. of freakin' A.
- Thanked 157 Times in 148 Posts
First, you may want to brush up on your HTML forms and how to use them...
Next, you may want to learn the fundamentals of a server-side language like PHP, that will allow you to validate form fields and add usernames to a log file, or email usernames to yourself...
The code you have attempted to forge there is little more than the tip of the iceburg, as far as what you want to accomplish....
Find yourself a good tutorial on HTML forms and PHP programming...do a Google search, there are plenty...
Once you get going with the PHP programming, do a search on "form validation" to fix your form/checkbox issue....
There are "filesystem functions" in PHP that will allow you to add usernames to a text (or log) file....do a Google search on "filesystem functions"......
The PHP "mail function" will allow you to e-mail HTML form fields to yourself...
Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
[Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
Get free updates about new software version releases, features, and bug fixes!
♪♪ …Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪