-
info from one page to another
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.
Anyone know of an existing script that might work? Or suggest a scripting start...
thanks for any information.
-
-
Javascript Kit might have what you are looking for.... But i am not garanteeing anything!
click here!!
-
-
-
-
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.
-
-
PHP, if available, is the way to go for this sort of thing, yes.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks