Re: Do I need a script to do this?

by "Darrell King" <darrell(at)webctr.com>

 Date:  Mon, 15 Apr 2002 09:31:51 -0400
 To:  "hwg-basics" <hwg-basics(at)hwg.org>
 References:  celticweb
  todo: View Thread, Original
"Is there a way of passing information from one web page to another..."

Yep, Perl, PHP, JavaScript, ASP, CF, etc...

"...without a script of some sort?"

Yes.

Actually, to be more correct, you can *pass* the info without a script
easily just by including it in an HTML form as a hidden field, as you
suggest in your note, or in a link as part of the query string
(orderform.htm?productcode=blah).  However, you can't really *do* anything
with it (such as prepopulating a field) when it gets to orderform.htm
without some kind of script to accept that data.

D

----- Original Message -----
From: "Steve Burrill" <steve.burrill(at)celtic-web.co.uk>
?


Is there a way of passing information from one web page to another without a
script of some sort?

I'd like to create a page - lets call it "orderform.htm" which contains a
form with various fields. One of the fields may be something like
"productcode".

Now, say, I've got other pages, each for a seperate product, how can I
create some sort of link to the order form on each of these pages that fills
in the product code field on the form automatically?

I thought of something like a small form on each of the pages with a hidden
field containing the product code which is somehow posted to the next page
when you hit submit?

I'd appreciate any pointers on what approach I should take.

Thanks

Steve

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA