I am trying to write an if statement like this:
[PHP]
$email = $_POST['email'];
if ( "@" !isin '$email' ) {
echo "Not a valid email address!<br />";
return;
}
[/PHP]
What i am trying to do is give message and return if @ is not in $email variable. I don't know the PHP equivelent for isin. Cannot use == because @ can be anywhere in the $email...
User Profile
Collapse
-
Thanks Atli. That titbit of code worked great. :) -
PHP & MYSQL ip address check
...Code:<html> <head> <title>Add New MySQL User</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <? if(isset($_POST['add'])) { include 'c:\sokkit\config.php'; include 'c:\sokkit\opendb.php'; $ip=$_SERVER['REMOTE_ADDR']; $username = $_POST['username']; -
-
Static Drop down menu variable for mysql
Greetings, I have been attempting to make a drop down menu of countries. From this menu I wish to create a variable in order to INPUT into mysql database. I have no trouble making the drop down menu, but I am unable to store a variable for it.
Here is a rough copy of what I am making:
<html>
<head>
<title>Add New MySQL User</title>
<meta http-equiv="Content-Type"...
No activity results to display
Show More
Leave a comment: