Results 1 to 7 of 7

Thread: Server Variables

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2004
    Posts
    144

    Server Variables

    Hey all

    Need some help with some server variables....

    My problem is i have a textbox on a html page called page1.html that when an sql query is placed in to the textbox that SQL query will display the relevent data on a PHP page called page2.php.

    i have the page1.html pass the data using the GET method, on page2.php i want to grab the information passed over using the GET method using server variables... so far i have the following code

    page2.php
    Code:
    <?php 
    
    $input = $_SERVER['QUERY_STRING'];
    
    echo ("{$input}")
    ?>
    This grabs the information that was entered in the textbox:

    textarea=SELECT+*+FROM+tbl_Students+WHERE+DegreeID+%3D+1&Submit=Submit

    what i want to do now is return the text to it's original form

    SELECT * FROM tbl_Students WHERE DegreeID = 1

    How would i do this?

    thanks
    Last edited by JamesBowtell; Mar 9th, 2006 at 08:28 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
  •  



Click Here to Expand Forum to Full Width