Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    May 2006
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts

    HELP form processing

    HI guys i have a form that is actions is php:
    PHP Code:
    <?php echo $_SERVER['SCRIPT_NAME']; ?>

    but i have a variable $send in url

    ?send=2

    how can i do to process the data form in the same page with ?send=n? I tried this


    PHP Code:
    <?php echo $_SERVER['SCRIPT_NAME'] . "?send=" $_GET['send'];?>

    But dont work.

    Thanks in advance

  • #2
    Regular Coder
    Join Date
    May 2006
    Posts
    101
    Thanks
    0
    Thanked 1 Time in 1 Post
    Try this,

    Code:
    <?php echo $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'];?>

  • #3
    New Coder
    Join Date
    May 2006
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you very much
    Its working


  •  

    Posting Permissions

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