I want to pass this string $string="reg_personal.personal_sex='Female' OR reg_personal.marital_status='Single'"; through the URL...

Is it possible...I am not getting that... if the single quote is eliminated then there is no probs..
but i need that string in the exact way.... Is there any splitting and joining methods are available.

Please help me....

Thanks in adance,,
jino..

Recommended Answers

All 4 Replies

what for u want pass string with url...
its not secure

I agree with forzadraco: don't do this.
An attacker could simply call your page with:
page.php?string=;DELETE * FROM yourtable
and you're dead.

However, to answer your question, the function you're looking for is urlencode().

yeah forza petr.pavel

Thank u very much both of u...

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.