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:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old August 8th, 2000, 09:48 AM
whoopnstik whoopnstik is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Wheaton,IL USA
Posts: 9 whoopnstik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I've got a registration page but I want users to verify their data before it's submitted to the database. The form input is passing a string of data to verify.cgi, which I then want to pass the SAME STRING of data on to add.cgi. How can I achieve this?
Thanks,
Jamie

Reply With Quote
  #2  
Old August 8th, 2000, 10:32 AM
tron's Avatar
tron tron is offline
SwollenMember
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: the master control
Posts: 234 tron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 46 sec
Reputation Power: 9
I dunno, but have you tried two ACTION tags inside your FORM tag?

Reply With Quote
  #3  
Old August 8th, 2000, 11:36 AM
whoopnstik whoopnstik is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Wheaton,IL USA
Posts: 9 whoopnstik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Let me rephrase my desires: I want to pass an array from one script to be used in another script. How is that done?

Reply With Quote
  #4  
Old August 8th, 2000, 01:03 PM
JonLed JonLed is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2000
Location: Indiana
Posts: 614 JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 9
There are several ways to do this.

1. If you plan on going through the system (system()-like commands) do it like this:

system `perl verify.cgi "$var1" "$var2"`;
##This will pass the values $ARGV[0] and $ARGV[1] as $var1 and $var2.

Then to pass it back, do the same type of thing.

I don't recommend this, it's just a pain.

2. Redirect the browser to the script with the variables in the string (which is the GET method):

print "Content-type: text/htmln";
print "Location: verify.cgi?var1=asdf&var2=fdasnn"
------
3. Just put verify.cgi in you add.cgi script as a subroutine and run it when your want to verify the data. This is the best idea.

[This message has been edited by JonLed (edited August 09, 2000).]

Reply With Quote
  #5  
Old August 8th, 2000, 04:16 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>The form input is passing a string of data to verify.cgi, which I then want to pass the SAME STRING of data on to add.cgi.

Verifying the strings is part of the Add user process so merge them together to ONE script. There is no reason to separate them to two scripts. Though, in some situation, it loads faster technically, but yours would make it slower.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Passing on Info


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