|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Form Action with accompanied variable
<i><b>Originally posted by : Arbil (ricky@rickysantos.com)</b></i><br />I have this link which calls on data.asp and a variable named action w/c gets a certain value from a query.<br /><br /><a href="data.asp?action=finda?ocode=<%=rstQuery("GEOCODE")%>....<br /><br />Here's the portion of the data.asp file:<br /><br />Dim vAction<br />Dim vSource<br /><br />Set vAction = Request.QueryString("action")<br />Set vSource = Request.QueryString("source")<br /><br />Select case vAction<br /> case "ZoomIn" ' Zoom In <br /> mapimage.CenterAt x, y <br /> mapimage.DoZoom 1<br /> mapimage.Refresh<br /><br /> case "ZoomOut" 'Zoom Out<br /> mapimage.CenterAt x, y<br /> mapimage.DoZoom -1<br /> mapimage.Refresh<br /> .<br /> .<br /> .<br />End Select<br /><br /><br />This one works fine. I have to do the same approach but this time I'm calling the data.asp from a Form Action like this:<br /><br /><form method="get" action="data.asp"><br /><br />I tried to follow the same approach I made above by using a different variable but it doesn't work with Form Action. What will be the solution here so that when I click on the submit button the form will call on data.asp and pass whatever variable it is to the Select Case method?<br /><br />Can anyone help me with this? I'll appreciate it very much.<br /><br />Thanks in advance.<br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : prasad (tata_prasad@usa.net)</b></i><br />hi<br />try sending the variables(action,source) through hidden values it should work<br /><br />prasad<br /><br /><br />------------<br />Arbil at 11/24/2000 6:12:32 AM<br /><br />I have this link which calls on data.asp and a variable named action w/c gets a certain value from a query.<br /><br /><a href="data.asp?action=finda?ocode=<%=rstQuery("GEOCODE")%>....<br /><br />Here's the portion of the data.asp file:<br /><br />Dim vAction<br />Dim vSource<br /><br />Set vAction = Request.QueryString("action")<br />Set vSource = Request.QueryString("source")<br /><br />Select case vAction<br /> case "ZoomIn" ' Zoom In <br /> mapimage.CenterAt x, y <br /> mapimage.DoZoom 1<br /> mapimage.Refresh<br /><br /> case "ZoomOut" 'Zoom Out<br /> mapimage.CenterAt x, y<br /> mapimage.DoZoom -1<br /> mapimage.Refresh<br /> .<br /> .<br /> .<br />End Select<br /><br /><br />This one works fine. I have to do the same approach but this time I'm calling the data.asp from a Form Action like this:<br /><br /><form method="get" action="data.asp"><br /><br />I tried to follow the same approach I made above by using a different variable but it doesn't work with Form Action. What will be the solution here so that when I click on the submit button the form will call on data.asp and pass whatever variable it is to the Select Case method?<br /><br />Can anyone help me with this? I'll appreciate it very much.<br /><br />Thanks in advance.<br />
|
|
#3
|
|||
|
|||
|
<i><b>Originally posted by : Andres Melguizo Velez (lucan@bigfoot.com)</b></i><br />Hi!<br /><br />You are using a complete syntax for this: Request.QueryString("action")<br /><br />but you can do the same just using: Request("action")<br /><br />I'm telling you this because if you want to take a value that was submitted using a form you have to do this: Request.Form("action"), but you can just do: Request("action") and this will work for any case: passed as parameter, passed by a form submit with a POST or GET method.<br /><br />I hope this must be useful.<br /><br />Bye.<br /><br />------------<br />prasad at 11/28/2000 1:01:51 AM<br /><br />hi<br />try sending the variables(action,source) through hidden values it should work<br /><br />prasad<br /><br /><br />------------<br />Arbil at 11/24/2000 6:12:32 AM<br /><br />I have this link which calls on data.asp and a variable named action w/c gets a certain value from a query.<br /><br /><a href="data.asp?action=finda?ocode=<%=rstQuery("GEOCODE")%>....<br /><br />Here's the portion of the data.asp file:<br /><br />Dim vAction<br />Dim vSource<br /><br />Set vAction = Request.QueryString("action")<br />Set vSource = Request.QueryString("source")<br /><br />Select case vAction<br /> case "ZoomIn" ' Zoom In <br /> mapimage.CenterAt x, y <br /> mapimage.DoZoom 1<br /> mapimage.Refresh<br /><br /> case "ZoomOut" 'Zoom Out<br /> mapimage.CenterAt x, y<br /> mapimage.DoZoom -1<br /> mapimage.Refresh<br /> .<br /> .<br /> .<br />End Select<br /><br /><br />This one works fine. I have to do the same approach but this time I'm calling the data.asp from a Form Action like this:<br /><br /><form method="get" action="data.asp"><br /><br />I tried to follow the same approach I made above by using a different variable but it doesn't work with Form Action. What will be the solution here so that when I click on the submit button the form will call on data.asp and pass whatever variable it is to the Select Case method?<br /><br />Can anyone help me with this? I'll appreciate it very much.<br /><br />Thanks in advance.<br />
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > Form Action with accompanied variable |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|