new user php problem

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
DoppyNL

Wed Oct 30, 2002 6:14 am

try doing this:

Code: Select all

printr($_POST);

and you will get all values that where posted.

If you got an older version of PHP you will need to use $HTTP_POST_VARS instead of $_POST.

Greetz Daan

Jay

Wed Oct 30, 2002 9:14 am

DoppyNL wrote:try doing this:

Code: Select all

printr($_POST);

and you will get all values that where posted.

If you got an older version of PHP you will need to use $HTTP_POST_VARS instead of $_POST.

Greetz Daan

The function is print_r($_POST) btw ;)

DoppyNL

Wed Oct 30, 2002 10:00 am

Jay wrote:The function is print_r($_POST) btw ;)

ehh, sorry, my mistake.
probably because I don't use that one, I use a function of my own (with I different layout)

Greetz Daan

Jay

Wed Oct 30, 2002 12:35 pm

DoppyNL wrote:
Jay wrote:The function is print_r($_POST) btw ;)

ehh, sorry, my mistake.
probably because I don't use that one, I use a function of my own (with I different layout)

Greetz Daan

How different, I find print_r() to be quite useful when I'm stuck on a problem concerning arrays. Problem is you have to look at the source code, unless you use <pre> tags before and after.

DoppyNL

Thu Oct 31, 2002 12:03 am

What version of PHP are you running?

Have you tried $HTTP_POST_VARS['mybutton'] ?
or simply $mybutton ?

Greetz Daan

Jay

Thu Oct 31, 2002 2:03 am

Try using GET variables and access the page directly by appending the variables on the end of your URL. Then you'll know if the server is passing the variables on.

Post Reply