On 28 Jul 98, Suzanne wrote:

> <A
> HREF="http://www.merchantplanet.com/cgi-bin/add?id=aftermath&product=TLC-D
> VDROM" ><B>Order
> online now!

> Any ideas on how to replace the image input area in the first version with
> a hypertext link like that in the second version?

Well, in the example above you're passing on the variables the script requires as you would with a form, but using an href instead. The net result is the same, however.

The obvious problem with this method is that that the user can't change any variables, as he can with a form, but in this particular case it doesn't matter because the variables are fixed: 'id'=aftermath (whatever that may signify in this script), and 'product'=TLC-DVDROM. The fact that the user is clicking on that particular hypertext link means those are the variables he wants to submit.

The script I use to process mail that users send from my sites, mail.pl, requires three variables in order to work right: 'recipient', 'realname' and 'email'. So if I were to add the following to a page of mine:

<a href="http://www.almonte.com/bin/mail.pl?recipient=webmaster@almonte. com&realname=brent&[EMAIL PROTECTED]"> Send this letter </a>

... the script would execute correctly, and I would be sent a blank e-mail from myself.

So in your case, you could try something like:

<a href="http://www.cartserver.com/sc/cart.cgi?item=a- 3003^TLCDVDR^TLC DVD-ROM^45.00^1^5.50">

... which (I *think*) should pass on the necessary variables to the script your client is using. Others more knowledgable than I about CGI may want to weigh in here, mind you.
-----------
Brent Eades, Almonte, Ontario
   E-mail: [EMAIL PROTECTED]
           [EMAIL PROTECTED]
   Town of Almonte site: http://www.almonte.com/
   Business site: http://www.federalweb.com

____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------


Reply via email to