CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Storing values in links

 



zeida604
Deleted

Aug 29, 2000, 9:27 AM

Post #1 of 4 (467 views)
Storing values in links Can't Post

I'm trying to call a cgi script when my user clicks on a <a href> tag. Is there a way I can store a value in my text link with out using a form.

Thankyou
zeida604


j0k3r
Deleted

Aug 28, 2000, 10:31 PM

Post #2 of 4 (467 views)
Re: Storing values in links [In reply to] Can't Post

Yep, for example:

cool.cgi?test=yes&test2=no

Let me break it apart for you...
(cool.cgi) is the cgi program
after the program use a (?)
then start placing your variables...
test=yes
test2=no
separate each variable with (&)

p.s. if you need a space in a value use a (+)

~JpT~


zeida604
Deleted

Aug 28, 2000, 10:59 PM

Post #3 of 4 (467 views)
Re: Storing values in links [In reply to] Can't Post

I still don't know how to write the <a href> tag with these values stored can you print out the example.


no longer fuzzy
Deleted

Aug 29, 2000, 12:14 PM

Post #4 of 4 (467 views)
Re: Storing values in links [In reply to] Can't Post

I think this is what you are looking for:

<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>


<a href="http://your.url.com/yourscript.cgi?variable1=value&variable2=value">Text link</a>
</pre><HR></BLOCKQUOTE>

[This message has been edited by no longer fuzzy (edited 08-29-2000).]

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives