Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

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 Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old November 19th, 2000, 12:08 PM
jjjones jjjones is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 13 jjjones User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 27 sec
Reputation Power: 0
I am a newbie cgi programmer so please bare with me...

I have a mail capture form on a web page. I want to pass a token to the mail capture cgi (which has already been set up and will accept the token)

I know how to generate the token and pass it to the html page (using ?12345 in the url.) But I can't figure out how to pass the token along to the mail capture cgi when the user presses submit.

Can anyone help?

Reply With Quote
  #2  
Old November 19th, 2000, 01:53 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>I have a mail capture form on a web page

No idea what "mail capture" is.

>>(using ?12345 in the url.)
>>how to pass the token along to the mail capture cgi when the user presses submit

Use hidden field. You are better off setting a variable name to 12345.

Reply With Quote
  #3  
Old November 19th, 2000, 02:02 PM
jjjones jjjones is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 13 jjjones User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 27 sec
Reputation Power: 0
I meant to say an email capture form.

The user enters their name and email address to subscribe to join my email list. When they press submit their name and email address are sent to a cgi program that enters them into a database. I need to know how to send a number that was passed in the URL to the CGI program.

For example, the url that they surf to is http://www.mysite.com?12345

Then they fill out the form and press submit. How do I pass the 12345 to the cgi program? Note: 12345 is a token that is different each time.

Reply With Quote
  #4  
Old November 19th, 2000, 02:12 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Use $ENV{QUERY_STRING}, it will have the 12345 value. You should use Form POST and set the 12345 value to be a hidden field value.

Reply With Quote
  #5  
Old November 19th, 2000, 02:36 PM
jjjones jjjones is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 13 jjjones User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 27 sec
Reputation Power: 0
Ok, now how do I SET the 12345 value to a hidden field value from the html page?

Reply With Quote
  #6  
Old November 19th, 2000, 07:46 PM
Envex Envex is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 4 Envex User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0

Easy, just add a line like this into your form:
<input type="hidden" name="something" value="12345">

Mike


------------------
Envex Developments
Your CGI Script Specialists
http://www.envex.net/

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > How To Capture Unique Token


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