Passing A Value Via Href?

how can i pass more then one value via href

with this kind of method

echo “<a href=“submit_docs.php?prop_id=”.$prop_id.”">Click ";

echo "<a href="submit_docs.php?prop_id=".$prop_id."&user_id=".$user_id."">Click </a>";

but how to pass varchar values ?

Depends what type of var you are trying to send as some should not be sent by url like password and username.

but you can use $_GET

i meant would it be passing varchar…for example like prop_id = prop123… :-X

yes it can be chars as well and int but some chars will need to use urlencode() for spaces and other chars

for example if you pass “hello world” it will be “hello%20world”

thanx a lot…got it solved it…thanx again…

yes then use urldecode()

Sponsor our Newsletter | Privacy Policy | Terms of Service