I want to pass the below string through a url....
It is the result of a search query...

$query_string=reg_personal.personal_sex='Male' AND reg_personal.personal_matrital_status = 'Single'

I had used this statement <a href='{$_SERVER}?pageno=1&query_string='.$query_string1.'>FIRST</a> for passing the $query_string variable via the url ....

But i am not getting the 'Male' part after the equal(=) sign as the output.....
How this happen....???
Please help me ...

Thanks in advance.
Jino.

Are you surrounding it with single or double quotes?
If double, then $query_string1 shouldn't be escaped.

echo "<a href='{$_SERVER['PHP_SELF']}?pageno=1&query_string=$query_string1'>FIRST</a>";
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.