PHP email validation





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 4 5 6 7 8 9  ...  14 15 Next »
6
Date Submitted Mon. Jun. 4th, 2007 3:06 PM
Revision 1
Scripter Fordiman
Tags "object passing" | JavaScript | PHP | serialize
Comments 6 comments
This is a quick set of overrides for Javascript so that any variable can be passed to PHP in a GET/POST activity. Just call myVar.toPHP();

I use this little set of functions extensively in a little Javascript/PHP RPC handler I wrote. I don't have the reverse function, as I pass JSON back to the browser for the return value.

Note: This lib is not safe for binaries or HTML Elements. The former will come out similar to FTP ASCII breaks, and the latter will cause infinite recursion. If you want to make a speical case for HTML Elements, do so; you could probably just test for parentNode and create a 'safe' object from that. I didn't need it, so I didn't code it.

As for binary safety, at some point between toPHP/escape/post/urldecode/unserialize, the object breaks. Rather than create a huge fix for something I didn't need to do, I put in a quick match/hack. Don't like it? Write the fix yourself.
7
Date Submitted Fri. Jun. 1st, 2007 7:30 PM
Revision 1
Helper albud
Tags aspects | design | PHP
Comments 3 comments
A proof of concept idea I had for implementing an aspect oriented framework in PHP (yes, I know about http://aophp.net, but it requires a module).

I thought it was neat, so I'm going to share it.

Hope someone likes it.
5
Date Submitted Tue. May. 29th, 2007 3:10 AM
Revision 1
Helper morad
Tags Email | Expression | RegExp | Regular | URL
Comments 0 comments
Reg exp for finding url and email adresses. i'm using this from any projects of me. they working
7
Date Submitted Mon. May. 21st, 2007 12:22 AM
Revision 1
Scripter SecondV
Tags "register globals" register_globals, | PHP
Comments 0 comments
This function will reverse the affects of register_globals
5
Date Submitted Sun. May. 20th, 2007 10:58 PM
Revision 1
Scripter SecondV
Tags allow | deny | DOMAIN | PHP | post
Comments 3 comments
This small snippet will not allow _POST requests from a 'foreign' domain. It relies on the HTTP_REFERER variable.
10
Date Submitted Sun. May. 20th, 2007 5:27 AM
Revision 1
Scripter SecondV
Tags Online | PHP | URL
Comments 1 comments
This simple function will check if a url is valid (going by parse_url()) and if it's 'online' - by seeing if it returns a 302, 301, or 200 status code.
9
Date Submitted Sun. Apr. 29th, 2007 4:42 PM
Revision 1
Helper Nico
Tags API | Class | message | PHP | Send | SMS
Comments 5 comments
This PHP class allows you to send SMS to almost every country directly from your website. All you need is an account on www.tm4b.com and PHP 5.

Also required is either cURL or allow_url_fopen enabled in php.ini
8
Date Submitted Thu. Apr. 12th, 2007 2:33 PM
Revision 1
Beginner siva
Tags Email | JavaScript | Mail | protect
Comments 4 comments
You can search for "@" or something like mail information in your page source code. You'll find nothing.
You can have link of your mail with a title or just you mail address as the title. Hope this code have no problem...
2
Date Submitted Tue. Apr. 10th, 2007 9:39 PM
Revision 1
Helper snowdonkey
Tags Form | PHP | Validate
Comments 3 comments
The following script is a single interface for pre-validating any HTML form. It lets you validate your form data the way you want, while handling the rudimentary tasks itself.

1) Change just one variable to make it work with $_GET or $_POST or $_REQUEST.

2) Name which elements are 'required' all at once in a hidden HTML text input.

3) Easily provide field descriptions in hidden HTML text inputs that you can use to print error statements.

4) Call a single function to print out error statements that you can easily style with CSS.

5) It automatically checks if fields marked 'required' have been filled out.

Most of the pre-validation code is from PHP 5: Unleashed by Sams Publishing. I found it extremely useful for a recent project. Sharing it here, I removed some unnecessary functions, and tried to simplify some points.

All the comments are my own; hopefully I provided more than enough explanation.
7
Date Submitted Wed. Apr. 4th, 2007 8:52 AM
Revision 1
Helper ushi
Tags Anti-Injection | Class | Database | mysql | PHP
Comments 6 comments
A simple MySQL class for use in PHP.
Feel free to suggest improvements.
« Previous 1 2 3 4 5 6 7 8 9  ...  14 15 Next »