Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing variables from browser address bar

Status
Not open for further replies.

dominiopt

Technical User
Sep 10, 2001
75
PT
Hi all,

We use one small php script with php mail function in our web. The script did working just fine until we change the web server. We did investigate and we found the new server only accepts variables if we use the post method. We did fix the script. The problem now it was how can we use php scripts if we do the calls directly from the browser address bar ? since in this case we couldn't define the method, as we do if we use one form object.

This example doesn't work


<?php
mail($_POST["email"],

Thanks
Fernando
 
If the server doesn't support GET variables which I find strange, then its going to be hard to do. If you do
Code:
echo $_GET['mail'];

does the variable mail appear inisde the GET superglobal?

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
This is a good way to find out what data is being posted. Add this somewhere in your target php.

echo '<pre>';print_r($_POST);echo "</pre>";die;

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top