Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a php and an html document, the html document has a form with textfield and i want that when i click in submit on html from it appear in the php page what i wrote in textfield.
I have this in php document for example:

VB
<?php
 echo "$name";

 ?>



I already search and i know that if i put $_POST['name'] it works.
But i also discovered that the file php.bin in XAMPP if we change to on register_globals value it should be work without the $ _POST, but dont know why its not working, someone why can be?

Very thanks!
Posted

1 solution

Hi,

Please see:
http://php.net/manual/en/security.globals.php[^]
Warning

This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

So probably you use PHP 5.4.0.

But a warning for everyone: DON'T set register_globals to on! It's a security risk (for more information, click on the link I provided). ALWAYS set register_globals to off
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900