Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

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 13th, 2005, 06:50 AM
luke.wallwin luke.wallwin is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 4 luke.wallwin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 44 sec
Reputation Power: 0
Redirect and add query string

Hi I'm trying to find an example of a server side script that will redirect a user to a defined url and append a querystring of data captured by a web form.

Little help !

Reply With Quote
  #2  
Old November 13th, 2005, 01:36 PM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
The Drunken Moderator
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2004
Location: Reston, VA, USA
Posts: 13,062 jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 82293 Folding Title: Advanced FolderFolding Points: 82293 Folding Title: Advanced FolderFolding Points: 82293 Folding Title: Advanced FolderFolding Points: 82293 Folding Title: Advanced FolderFolding Points: 82293 Folding Title: Advanced Folder
Time spent in forums: 3 Months 6 Days 13 h 36 m 58 sec
Reputation Power: 1576
Facebook
Quote:
Originally Posted by luke.wallwin
Hi I'm trying to find an example of a server side script that will redirect a user to a defined url and append a querystring of data captured by a web form.

Little help !


What programming language are you using? For example, in ASP, you could use

asp Code:
Original - asp Code
  1.  
  2. <%
  3. response.redirect "yoururl.asp?cmd=string"
  4. %>


Give me a little more info on what you're trying to do.
__________________
jmurrayhead

Did I help you out? Make me popular by clicking the icon!

New Members:Proper way to post a question

Powered by ASP.Net

Reply With Quote
  #3  
Old November 13th, 2005, 05:23 PM
luke.wallwin luke.wallwin is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 4 luke.wallwin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 44 sec
Reputation Power: 0
Hi,

Thanks for the reply. I'm trying to use asp.

I have a html page containing a form. When the user hit's submit I'd like to redirect them to an external webpage url and append a querystring of data from the web form.

I have it fine working client side simply using POST and:

response.write(request.querystring("field")) to add the querystring.

Any help would be appreciated.

Reply With Quote
  #4  
Old November 13th, 2005, 08:10 PM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
The Drunken Moderator
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2004
Location: Reston, VA, USA
Posts: 13,062 jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 82293 Folding Title: Advanced FolderFolding Points: 82293 Folding Title: Advanced FolderFolding Points: 82293 Folding Title: Advanced FolderFolding Points: 82293 Folding Title: Advanced FolderFolding Points: 82293 Folding Title: Advanced Folder
Time spent in forums: 3 Months 6 Days 13 h 36 m 58 sec
Reputation Power: 1576
Facebook
Quote:
Originally Posted by luke.wallwin
Hi,

Thanks for the reply. I'm trying to use asp.

I have a html page containing a form. When the user hit's submit I'd like to redirect them to an external webpage url and append a querystring of data from the web form.

I have it fine working client side simply using POST and:

response.write(request.querystring("field")) to add the querystring.

Any help would be appreciated.


Okay, if I understand correctly, you're trying to send form data to another web site. I believe something like this should work for you:

Suppose you have a form field named "Name" on form.asp and that data is being posted to form2.asp:
asp Code:
Original - asp Code
  1.  
  2. <%
  3. Dim fldName
  4.  
  5. fldName = request.querystring("Name")
  6.  
  7. response.redirect "http://www.whatever.com?name=" & fldName
  8. %>
Comments on this post
luke.wallwin agrees!

Reply With Quote
  #5  
Old November 14th, 2005, 06:29 AM
luke.wallwin luke.wallwin is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 4 luke.wallwin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 44 sec
Reputation Power: 0
Superstar!

Ta very much

Reply With Quote
  #6  
Old November 14th, 2005, 06:51 PM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
The Drunken Moderator
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2004
Location: Reston, VA, USA
Posts: 13,062 jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 82293 Folding Title: Advanced FolderFolding Points: 82293 Folding Title: Advanced FolderFolding Points: 82293 Folding Title: Advanced FolderFolding Points: 82293 Folding Title: Advanced FolderFolding Points: 82293 Folding Title: Advanced Folder
Time spent in forums: 3 Months 6 Days 13 h 36 m 58 sec
Reputation Power: 1576
Facebook
Quote:
Originally Posted by luke.wallwin
Superstar!

Ta very much


You are very welcome

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > Redirect and add query string


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 1 hosted by Hostway