Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2008
    Posts
    21
    Plugin Contributions
    0

    Default Products.php - Inserting data from get method?

    Hi Guys,

    In the product.php page in the admin backend, I need to create two get methods for Product Name and Description that has to be read in from the URL. Currently the url looks like...

    admin/product.php?x=41&y=10&product_type=1&cPath=2&action=new_product

    I will simply change to this...

    admin/product.php?x=41&y=10&product_type=1&cPath=2&action=new_product&productName=what ever&description=whatever

    So on products.php I will have two get methods to get the values
    $product_name = $_GET['product_name'];
    $description = $_GET['description'];

    I then need to populate the product name and description textfields with these values, but I'm not sure where I should be putting the.. echo $product_name; code?.. to print out the value into the textfields.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Products.php - Inserting data from get method?

    What is your end goal?

    Are you attempting to "boilerplate" product creation?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Aug 2008
    Posts
    21
    Plugin Contributions
    0

    Default Re: Products.php - Inserting data from get method?

    I'm basically trying to send a load of parameters into the product.php page and pre populate all the textfields like product name, product description and so on with the sent values.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Products.php - Inserting data from get method?

    Search this forum for "boilerplate" and the downloads
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. zen_draw_input_fields change value to data from php variable
    By zvenson in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Jun 2009, 06:25 AM
  2. PHP Question: Inserting code to refer to another .php file
    By datatv in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Sep 2008, 10:24 PM
  3. Replies: 1
    Last Post: 12 Oct 2007, 03:02 PM
  4. Inserting text in payment method box
    By xoki in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 18 Jul 2006, 03:00 AM

Posting Permissions

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