$_POST variable

General discussions related to php

Moderators: macek, egami, gesf

DoppyNL

Postby DoppyNL » Wed Oct 30, 2002 11:57 pm

use:

Code: Select all

print_r($_POST);
to see what is actually posted to your script.
I can't see what is going wrong at this time.

Greetz Daan

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: $_POST variable

Postby WiZARD » Sat Nov 02, 2002 2:13 am

killabine wrote:hello,
i just installed php4 on my apache2.0 server. it workes fine, sorta..
when i try to get a variable sent via POST, i get this:
[value][name]=[value] combination
ie:
<input type="text" name="user">
say i type in, John, and if i try to get the "user" variable:
print $_POST['user'];
i get this in the web browser:
Johnuser=John
i also tried registering globals, and tried
print $user;
but i got the same result.
does anyone know how to fix this?
thanks

DopppyNL right!
print_r ""; print variables like array.
but
print ""; print like as is [variable][value]=[value]
And once more this question for coding part of this forum....
Sorry...


Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 1 guest