SunQuest
           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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old December 25th, 2000, 10:58 PM
dark_jurmanji
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Hello,
I am a little new to Perl and I am having a little trouble with my forst CGI Site. I'm trying to get on page to insert form information into a table. Everytime I fill out the form I get nothing passed to the other script. Then I tried to execute it it self and have had little luck with the "IF" statement.

Can any one help??
Replies would be helpfull. (and Appreciated)
Thank You
John W.

Reply With Quote
  #2  
Old December 26th, 2000, 08:31 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>> I get nothing passed to the other script

What other script? How many scripts? Are you using hidden fields?
Nobody can help you if you don't provide more details and possibly take a look at your script, but posting your entire script here is not a wise thing to do.

Reply With Quote
  #3  
Old December 27th, 2000, 12:23 PM
dark_jurmanji
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I appologize about that I was very tired that night that I wrote that.

I have a form that 14 fields that need to be inserted into a Mysql table running on a "SUN" Server. My first script has only the form in it. I do have a hidden field but I don't know how to populate that field to have the $action execute itself.
if ($hidden eq "insert_ok")
{
insert into table;
}
else
{
Print form with $hidden;
}

Or I have tried to have the $action point to "insertDB.cgi" the second script.

I have tried this method, but have had no sucess. I have this script setup to
"insert into DB..."
if (rows <1)
{
"print record not inserted
print $insert_statement;
}
else
{
print "record insrted";
}
When ever I try and execute the form I get no values passing to the second script. I get "insert into table (field1, field2, field3) values ("","","")". The insert statement works when I hard code all the values.

Which way is the easiest way to insert this data into the table? Having the script $action itself of use a second script?
If the best way is to $action itself then how would I populate the $hidden field when submitted? I have believe that you can do this with Javascript. I don't know anything about Javascript.

Replies would be greatly appreciated.
Thank You.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > (CGI) Variables not passing to next page.


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