#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    MO, US
    Posts
    119
    Rep Power
    15
    My PHP script takes the values sent from an html and makes whole new values with if and else statements, like so:
    if ($quantity == '1000') {
    $quant = '1';
    $price = '49.00';
    $name = 'whatever';
    } else if ($quantity == '2000') {
    etc., etc., etc.
    }

    Then they have to press "submit" on the generated page and it submits the generated values to test.cgi using the "post" method.

    What I need to have happen is when they press "submit" from the html, the php needs to generate the values, and then directly put them into the test.cgi. I have tried the following:

    header("Location: <A HREF="http://www.mysite.com/cgi-bin/test.cgi?quant=$quant&price=$price&name=$name");" TARGET=_blank>http://www.mysite.com/cgi-bin/test.cgi?quant=$quant&price=$price&name=$name");</A>

    But what happens is it doubles the info, like this:

    Table 1 Table 2 Table 3
    name, name quant, quant price, price

    Does any know what I need to do? Thanks - if I need to post some more let me know -

    Ken
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Just read my post from your previous message -> http://www.devshed.com/Talk/Forums/F...ML/002958.html
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    MO, US
    Posts
    119
    Rep Power
    15
    I would like to know how to do this in PHP or JavaScript though.
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>it submits the generated values to test.cgi using the "post" method.
    >>I would like to know how to do this in PHP or JavaScript though

    I don't think PHP is capable to do that, the Post method to your remote script - test.cgi.

IMN logo majestic logo threadwatch logo seochat tools logo