Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > PHP

Reply
 
LinkBack Thread Tools Display Modes
Old 05-14-2004, 06:42 AM   #1 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
Cleaning up posted variables before saving.

I want to get the cleanest (ie. no extra spaces, no HTML, etc) values possible when a form is submitted. I am currently using the following functions.

strip_tags : remove HTML tags
trim : remove white space
str_replace : attempt to remove double spaces between words

is there anything else i can do with my values? these are all i can think of.
Admin is offline   Reply With Quote
Old 05-14-2004, 07:44 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
what kind of input is this for? are characters like !#$%^&*()|\/[]{} ok?
__________________
Mike
sde is offline   Reply With Quote
Old 05-14-2004, 09:28 AM   #3 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
its for the web. yes, those all are acceptable.
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 05-14-2004, 09:41 AM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
i can't think of anything else then.
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application variables sde Java 2 09-01-2004 04:30 PM
Dynamic variables in C#? sammy MS Technologies ( ASP, VB, C#, .NET ) 10 06-22-2004 02:22 AM
Casing Variables, Camel vs Pascal sde Program Design and Methods 2 10-01-2003 02:55 PM
reading a web form for input variables sde PHP 3 08-12-2003 10:02 AM


All times are GMT -8. The time now is 03:51 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting