View previous topic :: View next topic |
Author |
Message |
Fr4nk13 -
Joined: 16 Jul 2007 Posts: 4 Location: INDONESIA - BANDUNG
|
Posted: Tue Jul 17, 2007 10:57 am Post subject: URGEN !!! ABOUT ? = |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Tue Jul 17, 2007 2:03 pm Post subject: |
|
|
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 |
|
|
Fr4nk13 -
Joined: 16 Jul 2007 Posts: 4 Location: INDONESIA - BANDUNG
|
Posted: Thu Jul 19, 2007 4:10 am Post subject: |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu Jul 19, 2007 4:17 am Post subject: |
|
|
Your welcome. |
|
Back to top |
|
|
|