Jump to content

Birdmansplace

Members
  • Posts

    170
  • Joined

  • Last visited

Posts posted by Birdmansplace

  1. I am lookin for ideas for color.  every thing i try just doesn't look right to me.  I guess i am trying to go for a dark theme.  Thought about doing a color theme like my forum but then i would like to keep each area of the site a different theme.  I bet that makes no sence to do that but i am limited on what i do know and how to do it. Any and all ideas are welcome. 

     

     

    Birdman (my nickname): beats head on wall repeatedly

     

  2. The rules i wanted to the left.  make it more like a list.  Main part of the site is the forum and stats.  As far as the rest goes its just easy nav.  I want layed back and basic for some of the pages do users are sign up to get any more info.  I guess i didn't know validate was a big deal a basic site but i guess so.  I do like the feed back.  its takin be many hours and months to get this far.

     

     

    Edit:Used another computer on my network to view my site and i see what you mean.  for some reason probably what you stated is causing everything to be to the left. both my computers display it normal.  not sure. whats going on

  3. I am not to bothered by what uses what as long as the computer can handle it.  I am still in the "start up" of my site anyways.  I only have 3 members including me and they haven't been back in a few months.  But for those who want to at least check out go to http://birdmansplace.myftp.org

     

    On a side note i could use some smart phper's with my site.  I am on the look for members to add to my staff. 

  4. i think hes after have you get 3 options.  if you check option 1, 2, or 3 that each takes you to a different url whe you submit.

     

    op 1 take you to url 1 and 2 takes you to 2 and so on

  5. been there done that. being that the webserver is localhost an another computer on my net i have only been able to get the ip of the computer viewing it or computer host name. I am after the host ip.  My isp is dhcp so my ip changes some times daily and i would like to have something that checks and echos my ip or something like that.  I want users to see my ip from any where in the world.

  6. I got help tonight with a form that i wanted for my donate page on my site. webmaster1 helped me for about 5 hours. Thanks to his help i got want i wanted.  I sorry i could donate some cash to the site for the help i got but i did the next best thing and i am hosting the files created in that time for other users.

     

    here is the tread :http://www.phpfreaks.com/forums/index.php/topic,228830.0.html

     

    Thanks a million and i will be back again if i need it.

     

     

  7. Alright guys.  Thanks alot.  saved me hours and hours of personal head beatings.  I will leave the test folder and this info here for others to see.  And i will export the .sql file.

     

    check it out:

    form:http://birdmansplace.myftp.org/test/form.php                            output:http://birdmansplace.myftp.org/test/output.php

     

    Download: http://birdmansplace.myftp.org/test/form.zip

     

    Everything is current. Injoy

  8. form.php

    
    
    
    <?php
    
    if (isset($_POST['submit']))
    
    { 
    
         if (strlen($_POST['username']) > 0)
         {$username=TRUE;}
         else {$username=FALSE;
              $message_username="* You forgot to enter the username!";}
    
         if (strlen($_POST['amount']) > 0)
             {$amount=TRUE;
                                    if (is_numeric($_POST['amount']))
                                    {$amountnumericcheck=TRUE;}
                                    else {$amountnumericcheck=FALSE;
                               $message_amountnumericcheck=" *Please enter numeric values only!";
                                    //echo "$message_amountnumericcheck";
                                    }
                           }
       else    {$price=FALSE;
           $message_amount=" *You forgot to enter the amount!";}
    
         if 
            ($username && $amount)
            {                       
                       //YOU NEED TO HAVE AN EXTERNAL PHP FILE WITH YOUR DATABASE CONNECTION DETAILS. LET ME KNOW IF YOU DON'T KNOW HOW             
                       include("dbinfo.php");
                       mysql_connect(localhost,$username,$password);
                       @mysql_select_db($database) or die( "Unable to establish a connection to the relevant database.");
    
                       
                       $username = mysql_real_escape_string($_POST['username']);
                       $amount = mysql_real_escape_string($_POST['amount']);
                       $ipaddress = getenv('REMOTE_ADDR');
                       $now_datetime = date('Y-m-d h:i:s');
                       
    
                       $query = "INSERT INTO tablename VALUES ('','$username','$amount','$ipaddress',NOW())";
                       mysql_query($query);
    
                  
                       echo "Thank you $username !";
    
                       
                       exit();
                  }
    
    }
    
    ?>
    
    
    
    <html>
    <body>
    
    <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data">
    
    Username:<input type="text" name="username" id="username" value="<?php if (isset($_POST['username'])) echo $_POST['username']; ?>"/>
    <?php if ($message_username) echo ''.$message_username.''; ?>
    </br>
    Amount:<input type="text" name="amount" id="amount" value="<?php if (isset($_POST['amount'])) echo $_POST['amount']; ?>"/>
    <?php if ($message_amount) echo ''.$message_amount.''; ?>
    
    </br>
    <!---NO NEED FOR USER TO MANUALLY INPUT DATE FIELD, MYSQL WILL CAPTURE THIS FOR YOU AUTOMATICALLY->
    <input type="submit" name="submit" id="submit" value="Submit Details">
    
    
    
    <br><br>
    Form by staff and members of <a href="http://www.phpfreaks.com">phpfreaks</a>
    
    </form>
    </body>
    </html>
    
    
    <?php
    
    if (isset($_POST['submit']))
    
    { 
    
         if (strlen($_POST['username']) > 0)
         {$username=TRUE;}
         else {$username=FALSE;
              $message_username="* You forgot to enter the username!";}
    
         if (strlen($_POST['amount']) > 0)
             {$amount=TRUE;
                                    if (is_numeric($_POST['amount']))
                                    {$amountnumericcheck=TRUE;}
                                    else {$amountnumericcheck=FALSE;
                               $message_amountnumericcheck=" *Please enter numeric values only!";
                                    //echo "$message_amountnumericcheck";
                                    }
                           }
       else    {$price=FALSE;
           $message_amount=" *You forgot to enter the amount!";}
    
         if 
            ($username && $amount)
            {                       
                       //YOU NEED TO HAVE AN EXTERNAL PHP FILE WITH YOUR DATABASE CONNECTION DETAILS. LET ME KNOW IF YOU DON'T KNOW HOW             
                       include("dbinfo.php");
                       mysql_connect(localhost,$username,$password);
                       @mysql_select_db($database) or die( "Unable to establish a connection to the relevant database.");
    
                       
                       $username = mysql_real_escape_string($_POST['username']);
                       $amount = mysql_real_escape_string($_POST['amount']);
                       $ipaddress = getenv('REMOTE_ADDR');
                       $now_datetime = date('Y-m-d h:i:s');
                       
    
                       $query = "INSERT INTO tablename VALUES ('','$username','$amount','$ipaddress',NOW())";
                       mysql_query($query);
    
                  
                       echo "Thank you $username !";
    
                       
                       exit();
                  }
    
    }
    
    ?>
    
    
    
    <html>
    <body>
    
    <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data">
    
    Username:<input type="text" name="username" id="username" value="<?php if (isset($_POST['username'])) echo $_POST['username']; ?>"/>
    <?php if ($message_username) echo ''.$message_username.''; ?>
    </br>
    Amount:<input type="text" name="amount" id="amount" value="<?php if (isset($_POST['amount'])) echo $_POST['amount']; ?>"/>
    <?php if ($message_amount) echo ''.$message_amount.''; ?>
    
    </br>
    <!---NO NEED FOR USER TO MANUALLY INPUT DATE FIELD, MYSQL WILL CAPTURE THIS FOR YOU AUTOMATICALLY->
    <input type="submit" name="submit" id="submit" value="Submit Details">
    
    
    
    <br><br>
    Form by staff and members of <a href="http://www.phpfreaks.com">phpfreaks</a>
    
    </form>
    </body>
    </html>
    

     

     

    It works know!!!!!!!!!!!!!

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.