HELP PLEASE

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zarkasih
Forum Newbie
Posts: 1
Joined: Wed Nov 16, 2005 2:10 am

HELP PLEASE

Post 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.
User avatar
staniszczak
Forum Newbie
Posts: 13
Joined: Wed Oct 05, 2005 1:39 pm
Location: Radomsko, Poland

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

The (relevant piece of) code you are trying to use is a good start for us to help you.

Mac
Post Reply