View Full Version : info from one page to another

03-24-2006, 06:24 PM
I'm working on an art related commerce site.

I want to bring the Title and Price from a description page to form fields on an order form page via the link to the order form. My javascript skills are not up to the task. :confused:

Anyone know of an existing script that might work? Or suggest a scripting start...

thanks for any information.

03-24-2006, 09:48 PM
Javascript Kit might have what you are looking for.... But i am not garanteeing anything!

click here (http://www.javascriptkit.com/)!!

03-25-2006, 07:33 AM

03-25-2006, 02:13 PM
I'm thinking PHP would be a great solution to this...
Not only because it would take less PHP than JavaScript to do it...
But also because you could use PHP for a lot more on a commerce site...
I dunno...
Try PHP.

Give the thing you want to pass on a name. For example, you want to pass on a painting of a boat. Give it the name "Boat" or something. Maybe put it in a hidden input field or something, in a form that has action="process.php"

Then, in process.php, the following PHP would make the "Boat" carry over:
$Boat = $_REQUEST['Boat'] ;

then, below that, where you want the actual text "Boat" to appear, put this:

<?php echo $Boat ?>

JavaScript cant really be used for everything. I mean, it can be...but not easily for some things. PHP, in this situation, I think would be easier.

03-25-2006, 02:41 PM
PHP, if available, is the way to go for this sort of thing, yes.