Current location: Hot Scripts Forums » Programming Languages » PHP » use special character prob


use special character prob

Reply
  #1 (permalink)  
Old 11-27-06, 05:23 PM
kiko08 kiko08 is offline
Newbie Coder
 
Join Date: Oct 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
use special character prob

i want to use a double quotation as value for a name(checkbox) in a form.
how can i do that? i tried to use the \" but it doesnt work. probably bec its in the form.
Reply With Quote
  #2 (permalink)  
Old 11-27-06, 05:38 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
You can use %22, and then later urldecode() when receiving the data to convert it back to double quotes.

http://us2.php.net/urldecode
Reply With Quote
  #3 (permalink)  
Old 11-27-06, 05:54 PM
kiko08 kiko08 is offline
Newbie Coder
 
Join Date: Oct 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
iam just new to php and i cant understand complex code. is there a simpler solution?

how bout just ill do it manually in a form. i mean ill just use the double quotation as a name?
sample
name = height="100"
i want the 100 in a double qoutation.
thanks.
Reply With Quote
  #4 (permalink)  
Old 11-27-06, 06:42 PM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
PHP Code:

$height '"100"'
this will wrap quotes around 100.
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

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
how can i change or replace from one character to other character mailme420 PHP 4 09-26-06 02:52 AM
pls help learner understand following: clantron PHP 4 03-14-06 01:28 PM
Wanted to replace special characters in MS Access using VB, but more than 1 character cebuy Visual Basic 3 12-04-05 05:30 PM
PHP Regular Expressions Jaffizzle PHP 3 11-05-05 07:02 PM
How to replace extended Character with character luv_suresh Perl 1 06-22-05 12:16 AM


All times are GMT -5. The time now is 05:45 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.