1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Rep Power
    I've got a problem that I simply can not figure out, hopefully someone can help.

    I have to pass 2 form variables through a PHP URL redirect an I can not get it to work.
    The two values look like this:
    input type="hidden" name="account" value="00000000"
    input type="hidden" name="reqtype" value="secure"
    They are submitted through the form POST method.

    Here is my current redirect PHP file:
    $t = $QUERY_STRING;
    $c = settype($t,"integer");
    if (!$t &#0124; &#0124; !$c) {
    echo "Bad syntax: signup.php3?type&address";
    $redir = strchr($QUERY_STRING,'&');
    if (!$redir) {
    echo "Bad syntax: signup.php3?type&address";
    $r = substr($redir,1);
    $expire = time()+3600*24;
    header("Location: $r");

    The form is submitted by a button. The button link looks like this:
    method="post" action="/signup.php3?1&https://secure.ibill.com/cgi-win/ccard/ccard.exe

    All this file does is redirect the click to a sign up page and set a cookie but I need the form data to pass so the credit card company can attach the sale to my account number.

    Any help would be greatly appreciated.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Den Laeghe Landen
    Rep Power

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>$redir = strchr($QUERY_STRING,'&');[/code]
    I'm not sure if i'm getting this right; you have a form, which is processed by a PHP3-file, and this PHP3-file redirects to an EXE-file. Am i right?

    well, in that case, try this:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    $redir = strchr($QUERY_STRING,'&');
    $redir .= "account=$account&reqtype=$reqtype&";
    if the above is in a function within your PHP-file, don't forget to make these 2 variables global:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>global $account, $reqtype;[/code]

    I hope, this helped.

    <WARNING: signature has NULL-value>

    [This message has been edited by EyE (edited February 25, 2000).]

Similar Threads

  1. How to save form data to be recalled at a later date
    By Brutality in forum ColdFusion Development
    Replies: 3
    Last Post: February 8th, 2004, 03:31 PM
  2. Replies: 5
    Last Post: February 3rd, 2004, 02:59 PM
  3. Need help with some form data processing
    By wzhaoca in forum HTML Programming
    Replies: 2
    Last Post: February 2nd, 2004, 04:39 PM
  4. repost form data automaticaly
    By o1webdawg in forum ASP Programming
    Replies: 0
    Last Post: February 1st, 2004, 07:28 PM
  5. Inserting data into forms with PHP?
    By Methias in forum PHP Development
    Replies: 1
    Last Post: January 30th, 2004, 01:37 AM

IMN logo majestic logo threadwatch logo seochat tools logo