User Profile

Collapse

Profile Sidebar

Collapse
Boujii
Boujii
Last Activity: Apr 18 '07, 05:35 PM
Joined: Apr 3 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Boujii
    started a topic if statement
    in PHP

    if statement

    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...
    See more | Go to post

  • Boujii
    replied to PHP & MYSQL ip address check
    in PHP
    Thanks Atli. That titbit of code worked great. :)
    See more | Go to post

    Leave a comment:


  • Boujii
    started a topic PHP & MYSQL ip address check
    in PHP

    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'];
    ...
    See more | Go to post

  • Boujii
    replied to Static Drop down menu variable for mysql
    in PHP
    Thanks alot 'code green'. That worked just great.
    See more | Go to post

    Leave a comment:


  • Boujii
    started a topic Static Drop down menu variable for mysql
    in PHP

    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"...
    See more | Go to post
    Last edited by Boujii; Apr 3 '07, 06:42 AM. Reason: adding error
No activity results to display
Show More
Working...