.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 24th, 2000, 09:12 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 23
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 />

Reply With Quote
  #2  
Old November 28th, 2000, 04:01 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 23
<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 />

Reply With Quote
  #3  
Old February 27th, 2002, 09:48 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 23
<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 />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Form Action with accompanied variable


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT