Current location: Hot Scripts Forums » Programming Languages » PHP » How i get value + through $_GET array

How i get value + through $_GET array

Reply
  #1 (permalink)  
Old 11-10-09, 02:13 AM
anacy_nivas's Avatar
anacy_nivas anacy_nivas is offline
Newbie Coder
 
Join Date: Sep 2008
Location: coimbatore
Posts: 33
Thanks: 4
Thanked 0 Times in 0 Posts
How i get value + through $_GET array

I did a page with few text box, if i give the values, after submit it receives as $_GET array, works properly, but if i fill the values with "+" symbol i cannot get "+" values remaining works properly. instead of "+" it display space.

How i get the "+" value through text box. please help me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-10-09, 03:19 AM
jonnekke jonnekke is offline
Junior Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 640
Thanks: 0
Thanked 0 Times in 0 Posts
escape the character with \ so it would become \+

use the addslashed() function provided by PHP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-11-09, 12:17 AM
anacy_nivas's Avatar
anacy_nivas anacy_nivas is offline
Newbie Coder
 
Join Date: Sep 2008
Location: coimbatore
Posts: 33
Thanks: 4
Thanked 0 Times in 0 Posts
Fine, but i could not get value "+" after submit.

Fine thanks ,
but i could not get the value "+" after submit. using $_GET,

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-11-09, 07:08 AM
jonnekke jonnekke is offline
Junior Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 640
Thanks: 0
Thanked 0 Times in 0 Posts
perhaps the urldecode() and urlencode() functions can help you out here...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove value from array Nikas PHP 1 05-20-09 04:20 AM
Multi-Dimensional Array Help Nikas PHP 17 05-04-09 03:10 AM
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' Dr. Forensics PHP 3 07-15-06 04:54 PM
Serializing a set of arrays dannyallen PHP 2 10-11-04 04:04 AM
linking to iframe not working :( j0d JavaScript 5 01-19-04 09:14 PM


All times are GMT -5. The time now is 11:17 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.