Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
PHP: stripslashes() - Can this be applied to a number of strings at once??
Old 12-03-2003, 11:15 AM PHP: stripslashes() - Can this be applied to a number of strings at once??
Phunky's Avatar
Skilled Talker

Posts: 68
Location: NJ
Trades: 0
I know how to use this built-in php function with a single string, but is there a way to apply it to a number of strings at once so I dont have to individually apply it to every field on the form...


PHP Code:
<? print stripslashes($emp1_reason_for_leaving); ?>
is the line of code I am using for the string (this work fine), 'emp1_reason_for_leaving' is the name of a text input field on my form.

thanks.
__________________
But dreaming just comes natural
Like the first breath from a baby,
Like sunshine feeding daisies,
Like the love hidden deep in your heart.

~J.Prine
Phunky is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-03-2003, 09:19 PM
ACJavascript's Avatar
Humble Mod

Posts: 548
Location: CT, USA
Trades: 0
You could put all of your form fields into an Array then use foreach to go through each one using stripslashes
__________________

Please login or register to view this content. Registration is FREE
- 100 Satisfied Customers - Custom Programming and Web Development
ACJavascript is offline
Reply With Quote
View Public Profile Visit ACJavascript's homepage!
 
Old 12-04-2003, 03:26 PM
Phunky's Avatar
Skilled Talker

Posts: 68
Location: NJ
Trades: 0
thanks a lot, I already have done it by hand though... I will keep this in mind for next time though...

nice avatar!
__________________
But dreaming just comes natural
Like the first breath from a baby,
Like sunshine feeding daisies,
Like the love hidden deep in your heart.

~J.Prine
Phunky is offline
Reply With Quote
View Public Profile
 
Old 12-04-2003, 03:30 PM
ACJavascript's Avatar
Humble Mod

Posts: 548
Location: CT, USA
Trades: 0
Cool,,,


Yes I think it is to hehehe.

Its kind of like - Yea Im Cool and why dont you know this stuff LOL

I think I am chaing it though to my normal one,, huh hehe
__________________

Please login or register to view this content. Registration is FREE
- 100 Satisfied Customers - Custom Programming and Web Development
ACJavascript is offline
Reply With Quote
View Public Profile Visit ACJavascript's homepage!
 
Old 12-04-2003, 05:14 PM
Phunky's Avatar
Skilled Talker

Posts: 68
Location: NJ
Trades: 0
lol
__________________
But dreaming just comes natural
Like the first breath from a baby,
Like sunshine feeding daisies,
Like the love hidden deep in your heart.

~J.Prine
Phunky is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP: stripslashes() - Can this be applied to a number of strings at once??
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.48774 seconds with 12 queries