WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-13-2005, 04:51 PM
netman4ttm's Avatar
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Virginia
Posts: 386
netman4ttm RepRank 1
Default Passing a variable through the url

We are doing a site for a client, we are collecting payment info from customers. I have greated a variable cust_num which works well within the payment program.
The problem--
The client's url is http://www.yyy.com/dddd/ffff/survey.php?name=Bulk_Survey_for_Subs_5_24_05&ssKey ="Customer"&ssValue=####
Obviously, a fake url the last #### needs to be the customer's customer number the variable cust_num.
So how do I do this?
__________________
"The future is here. It's just not evenly distributed.
Reply With Quote
  #2 (permalink)  
Old 06-14-2005, 12:04 PM
Guest
 

Posts: n/a
Default

netman,
Somewhere in the form on the page sending the URL you should see a tag like <input name = "ssValue" type = "text"> or something like that. If you change ssValue to cust_num it should do what you're asking, assuming I understand the question correctly.
Reply With Quote
  #3 (permalink)  
Old 06-15-2005, 10:50 AM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 

Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,217
ADAM Web Design RepRank 0
Default

There are two ways I can see to do it:

1) Remove the quotes around "Customer". That may be screwing up your URL. A value in a querystring usually doesn't need quotes. If it does, then URL encode the quotes.

2) Use <input type="hidden" name="cust_num" value="(your customer number" /> to pass your customer number as a hidden form field.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0