|
|
|
Want to pass a string through URL...
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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..
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..
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().
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().
Petr 'PePa' Pavel
The more information you give the more relevant answer you get.
Please consider using "Add to ... Reputation" and mark your thread as Solved if you found what you were looking for. By giving feedback you help others.
The more information you give the more relevant answer you get.
Please consider using "Add to ... Reputation" and mark your thread as Solved if you found what you were looking for. By giving feedback you help others.
![]() |
Similar Threads
- convert string to lower case (C++)
- url pass question (PHP)
- Problem in Passing string via url...???? (PHP)
- Audio: Reading Internet "Playlist" and outputting audio (Java)
- Pass a two character (VB.NET)
- thx but how do i display an image in java (Java)
- Uri (Java)
- Pop3 Mail Watcher (Part 1) (Visual Basic 4 / 5 / 6)
- This ought to be simple - extra spaces (PHP)
- What is Parser? (Java)
Other Threads in the PHP Forum
- Previous Thread: Query syntax not working
- Next Thread: Php Mysql Shopping Cart
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner beneath binary broken cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date decode directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail match menu mlm mod_rewrite multiple mysql oop parse paypal pdf php problem protocol query radio random recursion regex remote script search server sessions sms smtp soap source space sql strip_tags structure survey syntax system table tutorial update upload url validation validator variable video web window.onbeforeunload=closeme; xml youtube





