Click to See Complete Forum and Search --> : Get values in ASP


Beginer
08-16-2000, 05:40 PM
Hi,
I try to do something like following:

...
<Form action=test.asp Name=form1>
<input name="size">
<input Type=botton Onclick=Myfunction()>
...
</form>
<Script>
function Myfunction() {
<%SQL="Select...Where a=%> document.form1.size.value
<%...%>
}
</Script>

I know it doesn't work at all.
How can I get the value from text box?

David
08-17-2000, 06:28 AM
Beginner,

To get the information from the text box use

request.form("size")

this has to be in the page, that the form is being posted too..

hope this helps

David

"Beginer" <htpai@lwcenter.com> wrote:
>
>Hi,
>I try to do something like following:
>
>...
><Form action=test.asp Name=form1>
><input name="size">
><input Type=botton Onclick=Myfunction()>
>...
></form>
><Script>
>function Myfunction() {
> <%SQL="Select...Where a=%> document.form1.size.value
> <%...%>
>}
></Script>
>
>I know it doesn't work at all.
>How can I get the value from text box?