Page 1 of 1

HELP PLEASE

Posted: Wed Nov 16, 2005 2:20 am
by zarkasih
I want ask, why my code don't work after uploading to webserver, every variabel that i send have null value/empty,
sample: <a href= sam.php?id=1> test </a> , after click id value = null or empty on page sam.php, but if i run for local it's work. Please give my the answer.

Posted: Wed Nov 16, 2005 2:46 am
by staniszczak
register_globals??
You use for example $id variable for read ?id=1?
Try use $_GET['id'], and please never more use $id for read GETs. For read POSTs you cen use $_POST array.

Best regards,
Marcin Staniszczak

Posted: Wed Nov 16, 2005 7:57 am
by twigletmac
The (relevant piece of) code you are trying to use is a good start for us to help you.

Mac