|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
passing value through form
I have this button named "strUpdate" for updating cart, i am trying to pass the value of the button strUpdate to my new page so that i can perform an if/else test.... here is my code for the form, but somehow it just doens't read it when i am on the other page.
<input type="image" src="images/update_cart.gif" name="strUpdate" value="Update Cart" onClick="document.form1.submit();"> on the original page when i try to call it on the other page strTest = request.form("strUpdate") response.write (strTest) nothing shows up and this code works for netscape and not IE... anyhelp would be great! thanks |
|
#2
|
||||
|
||||
|
<form action="newPage.asp" Method="POST">
make sure your input object is in <form> tags make sure your form tags look soemthing like this... |
|
#3
|
|||
|
|||
|
it is...
any other suggestions? |
|
#4
|
||||
|
||||
|
Hi
Wouldn't an INPUT image send a coordinate? Try: Code:
request.form("strUpdate.x")
|
|
#5
|
|||
|
|||
|
it was sending the coordinates using .x but i want to submit the preset value that i gave for that button... is this possible using an image button in the form ?
basically what i am trying to get at is sending the preset value of the image button to a different page so that when they click that button, i can do a test on the preset value of the image button and NOT the value of the inputted values.... |
|
#6
|
|||
|
|||
|
Quote:
<a href="myfile.asp ? myvalue = VALUE" ><img src="../myimage"></a> Then (usually the top of your target page) use: request.querystring("myvalue" ) Hope thats helps. HH. |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > passing value through form |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|