...

View Full Version : A little help



lebronletchev
06-11-2007, 02:04 AM
Hi,

I have the following form:

My form show me only: http://localhost/IISSamples/default/test/vbtest.asp?res=

This is my form:


<form action=vbtest.asp?test method="post">
<P><LABEL ACCESSKEY=U>User name: <INPUT TYPE=SUBMIT NAME=test SIZE=8 MAXLENGTH=8></LABEL>
<input type="text" name="test" ><BR></P>


Please how I do to obtain the following:

http://localhost/IISSamples/default/test/vbtest.asp?res=Number

Number: an number put on by the user on the form.

Thank you

LEBron

_Aerospace_Eng_
06-11-2007, 02:17 AM
Use GET instead of post

<form action="vbtest.asp" method="get">

lebronletchev
06-11-2007, 02:39 AM
Sorry, I did this before post this thread. However it add the "submit button" message.

Thanks

LeBRON

_Aerospace_Eng_
06-11-2007, 02:53 AM
Of course it did. Your submit button has the same name as the input button. Try this

<form action="vbtest.asp" method="get">
<p><label accesskey="u" for="test">Username: <input type="text" name="test" id="test" size="8" maxlength="8"/></label><br /><input type="submit" value="Submit" /></p>
</form>
TBH I think you should get better at HTML before you try doing advanced server side stuff.

lebronletchev
06-11-2007, 03:20 AM
_Aerospace_Eng_,

GREAT! Works now fine!

Thanks

LeBRON



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum