send variable from HTML to Perl.... 
Author Message
 send variable from HTML to Perl....

Hi:

I want to have an html document that sends a variale to a perl script....to
specify a place in an array on that perl script.

ex:

html file:
=======
<a href="/cgi-bin/gothere.pl?wow=0">page 1</a>
<a href="/cgi-bin/gothere.pl?wow=1">page 1</a>
<a href="/cgi-bin/gothere.pl?wow=2">page 2</a>
<a href="/cgi-bin/gothere.pl?wow=3">page 3</a>

perl file
======
#!/usr/bin/perl

print "Content-type: text/html\n\n";
use LWP::Simple;


--

I want the variable at the end of the HTML to grab the  specified place in
the array.......

any ideas?

Cam



Sat, 21 Dec 2002 03:00:00 GMT  
 send variable from HTML to Perl....

Quote:

>Hi:

>I want to have an html document that sends a variale to a perl script....to
>specify a place in an array on that perl script.

>ex:

>html file:
>=======
><a href="/cgi-bin/gothere.pl?wow=0">page 1</a>
><a href="/cgi-bin/gothere.pl?wow=1">page 1</a>
><a href="/cgi-bin/gothere.pl?wow=2">page 2</a>
><a href="/cgi-bin/gothere.pl?wow=3">page 3</a>

>perl file
>======
>#!/usr/bin/perl

>print "Content-type: text/html\n\n";
>use LWP::Simple;



>--

>I want the variable at the end of the HTML to grab the  specified place in
>the array.......

>any ideas?

>Cam

The flow is wrong here...  html can't "grab" values, unless it's
generated in a cgi-bin environment - which is where it'll figure out
what the variable should be...  flat html doesn't know anything about
variables.

The 2nd Perl script will get the "wow" value from
$ENV{'QUERY_STRING'}, or $ARGV[0].  



Sat, 21 Dec 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. send variable from html to perl

2. HTML form and Perl script send data to another Perl script

3. Help: sending HTML email from Perl/CGI

4. sending system output to a perl variable

5. Sending HTML email in Perl

6. Sending an email from perl as html

7. Perl script for sending mime html in body of mail

8. perl script that sends html messages to outlook 2000 clients

9. sending html email in perl

10. Sending Perl output to 2 diffent html frames

11. Problem - PERL mail script sends HTML formating as part of plain text message

12. Sending HTML Email from Perl Script

 

 
Powered by phpBB® Forum Software