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
This grabs the information that was entered in the textbox:Code:<?php $input = $_SERVER['QUERY_STRING']; echo ("{$input}") ?>
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




Reply With Quote