Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Request("formname") not working!!!

Status
Not open for further replies.

princessk1

Programmer
Feb 28, 2002
74
CA
I am using the request("selectname") to get the value out of a combo box from the previous page. I have gotten this to work in the past. For some reason I can not get the value from my text box or my combo box on the previous page to display on the new page. Any ideas why this wouldn't work? Thanks.
 
If it's posting rather than using GET, you may have to specify form...

ie:
Request.Form("selectName")

If not, please post some code. -Ovatvvon :-Q
 
Here is part of the code:

<table>
<tr>
<td align = right>
<b>Please choose the appropriate category:
</b></td>
<td align = left>
<form name = choosecategory method = &quot;GET&quot;>
<select name = category>
<option>General</option>
<option>Food</option>
<option>Furniture</option>
<option>Paint</option>
</select>
</form>
</td>
</tr>

<tr>
<td align = right>
<b>Please enter the amount of sales for the
new store:     </b></td>
<td align = left>
<form name = addsales method = &quot;GET&quot;>
<input type = &quot;text&quot; name = &quot;sales&quot; size=20>
</td>
</tr>
</form
</table>

<br><br><br><br>

<center>
<table border = 0 width = 100%>
<tr align = center>
<td>
<form name = SaveSales action
= &quot;SaveSales.asp&quot; action = &quot;GET&quot;>
<input type = &quot;Submit&quot; value = &quot;Save Sales
Amount&quot;>
</form>
</td>
</tr>
</table>

Thanks.
 
Your problem is that the values you are trying to select on your second page are not in the same form that you are submitting. Try having only one form that contains all of your form elements.


<form name = SaveSales action = &quot;SaveSales.asp&quot; action = &quot;GET&quot;>

<table>
<tr>
<td align = right>
<b>Please choose the appropriate category:
</b></td>
<td align = left>
<select name = category>
<option>General</option>
<option>Food</option>
<option>Furniture</option>
<option>Paint</option>
</select>
</td>
</tr>

<tr>
<td align = right>
<b>Please enter the amount of sales for the
new store: </b></td>
<td align = left>
<input type = &quot;text&quot; name = &quot;sales&quot; size=20>
</td>
</tr>
</table>

<br><br><br><br>

<center>
<table border = 0 width = 100%>
<tr align = center>
<td><input type = &quot;Submit&quot; value = &quot;Save Sales
Amount&quot;>

</td>
</tr>
</table>
</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top