Results 1 to 5 of 5

Thread: info from one page to another

  1. #1
    Join Date
    Mar 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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.

  2. #2
    Join Date
    Mar 2006
    Location
    Somewhere....
    Posts
    88
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Javascript Kit might have what you are looking for.... But i am not garanteeing anything!

    click here!!

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

  4. #4
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    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.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    PHP, if available, is the way to go for this sort of thing, yes.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •