Post: <html> Help me with retrieving my form please!
03-24-2011, 08:31 PM #1
<Jimbo>
</Jimbo>
(adsbygoogle = window.adsbygoogle || []).push({}); Well, I've been giving html a try recently! :y:

However, I have no idea how to retrieve values entered into it! :n:

Are there any better way's to do this that .asp files?! Or is that the best?! Like I said, like two day's of learning!

Here is an example form I created : You must login or register to view this content.

here is the html I have used:

    <html>
<head>
<marquee><img src="https://www.nextgenupdate.com/ngulogo.png" background /></marquee>
<body style="background-color:LightBlue">
</head>
<form>
<form>
First name: <input type="text" name="firstname" value="" /><br />
Last name: <input type="text" name="lastname" value="" />
</form>
<form>
Date Of Birth: <input type="Age" name="Age" value="MM/DD/YYYY" />
</form>
<form>
<if><input type="radio" name="sex" value="male" /> Male<br /><hide=<input type="radio" name="sex" value="female" /> Female</br></br>
</form>
<form>
<if><input type="checkbox" name="Cool" value="Yes" /> Yes I do use <url=http:\\www.nextgenupdate.com/<url>NGU</url><br /><hide=<input type="checkbox" name="Gay" value="No" /> I do not, as I am a fag! <B>I use</B>
<form action="">
</form>
<select name="Websites">
<option value="void main">---Select---</option><auto:1>
<option value="*****">PvFags</option>
<option value="cttv">ChrisTechTv</option>
<option value="other">Other Gaming Forum</option>
<option value="none">Other non-gaming forum</option>
<option value="no">None</option>
</select>
</form>
<B>Other:</B><input type="Other"</br>
<form name="input" action="html_thanks.asp" method="get"></br>
<B><I><U><center>Thank's for taking part! <input type="submit" value="Submit" url="www.netgenupdate.com" /></B></I></U></center>
</form>
</form>
</form>
<main>
JIMBO SAY'S Thanks!
<img="Report"</img>
<img src="https://www.nextgenupdate.com/forums/images/smilies/newset1/asik.gif" width="20" height="30" alt="Milford Sound in New Zealand" />
<img src="https://www.nextgenupdate.com/forums/images/smilies/troll-1.gif" width="20" height="30" alt="Milford Sound in New Zealand" />
<body>
<center><embed src="https://www.youtube.com/v/t6FUR_nhGX8?fs=1&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="1" height="1"></embed></center>
</body>
</html>

I know, it's a mess... and there are random things in there, but me and my friend made this today... in school... in notepad, on the admin account, we had no time to look over it! :y: Any help would be appriciated! =D
03-28-2011, 05:27 PM #2
vSaBoTeuR x
< ^ > < ^ >
Can I use PHP to solve this problem?
03-28-2011, 07:01 PM #3
<Jimbo>
</Jimbo>
Go for it, anything would help! thanks! :y: :love:

Originally posted by Kroxldyphivc View Post
Can I use PHP to solve this problem?
03-28-2011, 07:58 PM #4
Default Avatar
Oneup
Guest
Originally posted by 123tonka View Post
Well, I've been giving html a try recently! :y:

However, I have no idea how to retrieve values entered into it! :n:

Are there any better way's to do this that .asp files?! Or is that the best?! Like I said, like two day's of learning!

Here is an example form I created : You must login or register to view this content.

here is the html I have used:

    <html>
<head>
<marquee><img src="https://www.nextgenupdate.com/ngulogo.png" background /></marquee>
<body style="background-color:LightBlue">
</head>
<form>
<form>
First name: <input type="text" name="firstname" value="" /><br />
Last name: <input type="text" name="lastname" value="" />
</form>
<form>
Date Of Birth: <input type="Age" name="Age" value="MM/DD/YYYY" />
</form>
<form>
<if><input type="radio" name="sex" value="male" /> Male<br /><hide=<input type="radio" name="sex" value="female" /> Female</br></br>
</form>
<form>
<if><input type="checkbox" name="Cool" value="Yes" /> Yes I do use <url=http:\\www.nextgenupdate.com/<url>NGU</url><br /><hide=<input type="checkbox" name="Gay" value="No" /> I do not, as I am a fag! <B>I use</B>
<form action="">
</form>
<select name="Websites">
<option value="void main">---Select---</option><auto:1>
<option value="*****">PvFags</option>
<option value="cttv">ChrisTechTv</option>
<option value="other">Other Gaming Forum</option>
<option value="none">Other non-gaming forum</option>
<option value="no">None</option>
</select>
</form>
<B>Other:</B><input type="Other"</br>
<form name="input" action="html_thanks.asp" method="get"></br>
<B><I><U><center>Thank's for taking part! <input type="submit" value="Submit" url="www.netgenupdate.com" /></B></I></U></center>
</form>
</form>
</form>
<main>
JIMBO SAY'S Thanks!
<img="Report"</img>
<img src="https://www.nextgenupdate.com/forums/images/smilies/newset1/asik.gif" width="20" height="30" alt="Milford Sound in New Zealand" />
<img src="https://www.nextgenupdate.com/forums/images/smilies/troll-1.gif" width="20" height="30" alt="Milford Sound in New Zealand" />
<body>
<center><embed src="https://www.youtube.com/v/t6FUR_nhGX8?fs=1&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="1" height="1"></embed></center>
</body>
</html>

I know, it's a mess... and there are random things in there, but me and my friend made this today... in school... in notepad, on the admin account, we had no time to look over it! :y: Any help would be appriciated! =D


Well if you are trying to push this to an ASP page, you really should be using POST, this is an example I wrote a few weeks ago, just edit it to your needs:

    <%
dim name , emailaddress, quantity
name = request.form("nametextbox")
emailaddress = request.form("emailtextbox")
quantity = request.form("quantitytextbox")
pizzaSize = request.form("sizeselect")
cheese = request.form("chessecheckbox")
bacon = request.Form("baconcheckbox")
blackolives = request.Form("blackolivescheckbox")
extracheese = request.form("extracheesecheckbox")
mushrooms = request.form("mushroomscheckbox")
pepperoni = request.form("pepperonicheckbox")
sausage = request.form("sausagecheckbox")
method = request.form("pickup")
%>

'Basic Output

response.write("<h1>Panucci's Pizza</h1>")
response.write("<table>")
response.write("<tr><td>Awesome faceate: </td><td>" & Date & "</td></tr>")
response.write("<tr><td>Customer: </td><td>" & name & "</td></tr>")
response.write("<tr><td>Email Address: </td><td>" & emailaddress & "</td></tr>")

Whats in red is the control name, not the ID (top portion)
Not a huge fan of tables, but it was a language I had to learn in a few hours and I didnt wanna dickaround with CSS
Just a really quick rundown, though you can use php.
Last edited by Oneup ; 03-28-2011 at 08:00 PM.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo