Jump to content

Problems with $_POST command - PHP Setting?


Courbois

Recommended Posts

Hello,
My sitehost updated his systems and a PHP problem occured. I think it is a wrong option set, but they can't find it.
Many of my pages are called with a variable : page.php?PersonNr=012001
Normaly the variable $PersonNr gets automatically the vallue 012001. But that does not happen anymore.
I solved that in my source by adding the following lines:

$PATH_INFO = substr($_SERVER['REQUEST_URI'],strlen($_SERVER['SCRI PT_NAME']), strlen($_SERVER['REQUEST_URI']));
if (isset($PATH_INFO)) { $vardata = explode('?', $PATH_INFO);
$vardata2= explode('=', $vardata[1]);
$$vardata2[0] = $vardata2[1]; }

This to create a variable with that vallue. Ok that works again (not the nice way).

But the same? problem happens with forms.

Leaving a form with  <Form action="<? $PHP_SELF ?>" method="post">
should send all variables to the page again. I load the variables with:

$PersoonsNr=$_POST["PersoonsNr"];
$Naam=$_POST["Naam"];
$GeborenDag=$_POST["GeborenDag"];
etc.

But that does not work any more and i don't know how the find the vallues somewhere else.

They (siteprovider) think that they set something wrong while updating to a new server. But they are looking for a week now...

Who can help me?


Jos Courbois
Link to comment
https://forums.phpfreaks.com/topic/29390-problems-with-_post-command-php-setting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.