URGEN !!! ABOUT ? =

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
Fr4nk13
-


Joined: 16 Jul 2007
Posts: 4
Location: INDONESIA - BANDUNG

PostPosted: Tue Jul 17, 2007 10:57 am    Post subject: URGEN !!! ABOUT ? = Reply with quote

this is the part of my last post:

i use windows with xampp to write my script, i wanna some of the expert of you wanna help me:

the point of my problem, i have red that if we want to pass variable we wrote like this to the link:

http://localhost/example.pl?variable=$NAME , that mean if in the next page we have $variable with value $NAME, but why iin my script it doesn't work, for example in the example.pl i wrote:

#!"C:/xampp/perl/bin/perl.exe"
print "Content-type: text/html\n\n";
print "$variable\n";


maybe i miss something?
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Tue Jul 17, 2007 2:03 pm    Post subject: Reply with quote

Please don't request help for other 3rd party products unless it's in the Off Topic Discussion. This forum is meant for Abyss Web Server support only.
You need to send the variable using the param() function. I also added another line in order to enable the param() function.

Code:
#!"C:/xampp/perl/bin/perl.exe"
use CGI qw(:cgi);
print "Content-type: text/html\n\n";
print param("name")."\n";


Access it using
http://localhost/example.pl?name=Some+Value
Back to top View user's profile Send private message Visit poster's website
Fr4nk13
-


Joined: 16 Jul 2007
Posts: 4
Location: INDONESIA - BANDUNG

PostPosted: Thu Jul 19, 2007 4:10 am    Post subject: Reply with quote

sorry if i have make mistake by making 2 posting in same topic, but the last of your reply really help me, that's really work.

thanks Mr.TRUSTAbyss
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Thu Jul 19, 2007 4:17 am    Post subject: Reply with quote

Your welcome.
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group