hostfast
Verified User
- Joined
- Jul 28, 2008
- Messages
- 50
Hello,
In the script that sends the data is example:
In the script, that receive the data is:
and $_POST is empty
How to write the code correctly ?
Regards
In the script that sends the data is example:
PHP:
print('<form name="a" id="a" method="post" action="/CMD_PLUGINS/newplugin">' .
'<input type="text" name="n1" id="n1">' .
'<br><br><br><a href="/CMD_PLUGINS/newplugin/?cmd=command>Send</a>');
In the script, that receive the data is:
PHP:
if ( isset($_SERVER['POST']) && ($_SERVER['POST']) )
{
parse_str($_SERVER['POST'], $_POST);
}
and $_POST is empty
How to write the code correctly ?
Regards