Webmaster Forum

Go Back   Webmaster Forum > Scripting/Programming & Debugging > ASP & VBScript Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

ASP & VBScript Forum Need help from a webmaster with ASP or VBScript, you may ask in this forum?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2008, 03:43 PM
vilen vilen is offline
Junior Member
 
Join Date: Apr 2008
Posts: 1
vilen is an unknown quantity at this point
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq Submit to Spurl
Default Using Form Variables

Hi

I'm pretty new to VB/ASP but I have the following snippet in a web page:

<form method="GET" action="test_page.asp" id="form" name="form">
Option 1 <INPUT TYPE="RADIO" NAME="option" VALUE="1" CHECKED>
Option 2<INPUT TYPE="RADIO" NAME="option" VALUE="2">
Option 3<INPUT TYPE="RADIO" NAME="option" VALUE="3">
<input type="submit" value="Submit" name="button">
</p>
</form>

<%
form_value = Request.Form("option")
%>

<%
If form_value <> "0" then
Response.write "form_value = "& form_value &""
%>

I want as a first step to have the value of form_value written to the screen, e.g. form_value = 1 or form_value = 2

but instead all that appears on the page on the server is form_value =
with no value filled in.

It appears to be really simple, so I can't figure out why it's not working (I want to set another variable based on the value of form_value).

Any ideas?

TIA.
Reply With Quote

This ad is part of our Revenue Sharing program
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieve Info From Form on HTML Page ecmoore12 ASP & VBScript Forum 1 02-06-2008 07:07 PM
Declaration of public variables in vbscript sona90s ASP & VBScript Forum 1 10-19-2007 07:54 PM
PHP Email form help Brancoady PHP Forum 7 05-24-2007 08:00 AM


All times are GMT. The time now is 02:58 AM.


Creative Commons License
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30