943,630 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 2685
  • PHP RSS
Mar 12th, 2008
0

Want to pass a string through URL...

Expand Post »
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..
Similar Threads
Reputation Points: 10
Solved Threads: 10
Junior Poster
jino is offline Offline
114 posts
since Feb 2008
Mar 12th, 2008
0

Re: Want to pass a string through URL...

what for u want pass string with url...
its not secure
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
forzadraco is offline Offline
70 posts
since Mar 2008
Mar 12th, 2008
1

Re: Want to pass a string through URL...

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().
Reputation Points: 27
Solved Threads: 16
Junior Poster
petr.pavel is offline Offline
116 posts
since Mar 2008
Mar 12th, 2008
0

Re: Want to pass a string through URL...

yeah forza petr.pavel
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
forzadraco is offline Offline
70 posts
since Mar 2008
Mar 14th, 2008
0

Re: Want to pass a string through URL...

Thank u very much both of u...
Reputation Points: 10
Solved Threads: 10
Junior Poster
jino is offline Offline
114 posts
since Feb 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Query syntax not working
Next Thread in PHP Forum Timeline: Php Mysql Shopping Cart





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC