Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Footer

  1. #1
    Join Date
    Apr 2007
    Location
    england
    Posts
    536
    Tokens
    0

    Default Footer

    I have a problem, the div hirebottom, isn't showing up. Heres the code:

    Code:
    <div id="content">
    <div id="hiretop"></div>
    <div id="hiremiddle"><div id="hiremiddletext">
    <?php
    //Clean function, comment out if not wanted.
    
    function clean($string)
    {
    
        $string = htmlspecialchars($string, ENT_QUOTES);
    
        if (get_magic_quotes_gpc())
        {
    
            $string = stripslashes($string);
    
        }
    
        $string = str_replace("\"", "", $string);
        $string = htmlentities($string);
    
        /**
         *  If you want SQL injection protection uncomment the next line
         */
    
        // $string = mysql_real_escape_string($string);
    
        return $string;
    
    }
    
    //The variables
    $name = clean($_POST["name"]);
    $job = clean($_POST["job"]);
    $wwspy = clean($_POST["wwspy"]);
    $aboutme = clean($_POST["aboutme"]);
    $email = clean($_POST["email"]);
    
    if ($_GET["action"] == "submit")
    {
        echo "Thank you for sending in your application! Here is what you sent in to us:<br>
        Name: $name<br>
        Preffered Job: $job<br>
        Why we should pick you: $wwspy<br>
        About me: $aboutme<br>
        Email: $email<br>
        <br>
        For security purposes, we have logged you IP.<br>
        <strong>IP:</strong> $_SERVER[REMOTE_ADDR]<br>";
    exit;
    }     
    
     
     echo "XXX
    <br>
    <br>
    <form action=\"?action=submit\" method=\"post\">
        <div id=\"title\">Name:</div>
        <input type=\"text\" name=\"name\">
        <div id=\"title\">Email:</div>
        <input type=\"text\" name=\"email\">
        <div id=\"title\">Preffered Job:</div>
        <input type=\"text\" name=\"job\">
        <div id=\"title\">Why:</div>
        <style=\"width=\"169\"; height=\"116\"><textarea rows=\"7\" input type=\"text\" name=\"wwspy\" cols=\"28\"></textarea>
        <div id=\"title\">About me:</div>
        <style=\"width=\"169\"; height=\"116\"><textarea rows=\"7\" input type=\"text\" name=\"aboutme\" cols=\"28\"></textarea><br><br>
        <div id=\"submit\"><input type=\"submit\" name=\"submit\" value=\"Submit\">
        </form>";
        exit;
        
    
    ?></div>
    <div id="hirebottom"></div>
    </div>
    </div>
    </div>
    </div>


    Selling DJ/Habbo layout, more info here.


  2. #2
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by adamFTW View Post
    I have a problem, the div hirebottom, isn't showing up. Heres the code:

    Code:
    <div id="content">
    <div id="hiretop"></div>
    <div id="hiremiddle"><div id="hiremiddletext">
    <?php
    //Clean function, comment out if not wanted.
    
    function clean($string)
    {
    
        $string = htmlspecialchars($string, ENT_QUOTES);
    
        if (get_magic_quotes_gpc())
        {
    
            $string = stripslashes($string);
    
        }
    
        $string = str_replace("\"", "", $string);
        $string = htmlentities($string);
    
        /**
         *  If you want SQL injection protection uncomment the next line
         */
    
        // $string = mysql_real_escape_string($string);
    
        return $string;
    
    }
    
    //The variables
    $name = clean($_POST["name"]);
    $job = clean($_POST["job"]);
    $wwspy = clean($_POST["wwspy"]);
    $aboutme = clean($_POST["aboutme"]);
    $email = clean($_POST["email"]);
    
    if ($_GET["action"] == "submit")
    {
        echo "Thank you for sending in your application! Here is what you sent in to us:<br>
        Name: $name<br>
        Preffered Job: $job<br>
        Why we should pick you: $wwspy<br>
        About me: $aboutme<br>
        Email: $email<br>
        <br>
        For security purposes, we have logged you IP.<br>
        <strong>IP:</strong> $_SERVER[REMOTE_ADDR]<br>";
    exit;
    }     
    
     
     echo "XXX
    <br>
    <br>
    <form action=\"?action=submit\" method=\"post\">
        <div id=\"title\">Name:</div>
        <input type=\"text\" name=\"name\">
        <div id=\"title\">Email:</div>
        <input type=\"text\" name=\"email\">
        <div id=\"title\">Preffered Job:</div>
        <input type=\"text\" name=\"job\">
        <div id=\"title\">Why:</div>
        <style=\"width=\"169\"; height=\"116\"><textarea rows=\"7\" input type=\"text\" name=\"wwspy\" cols=\"28\"></textarea>
        <div id=\"title\">About me:</div>
        <style=\"width=\"169\"; height=\"116\"><textarea rows=\"7\" input type=\"text\" name=\"aboutme\" cols=\"28\"></textarea><br><br>
        <div id=\"submit\"><input type=\"submit\" name=\"submit\" value=\"Submit\">
        </form>";
        exit;
        
    
    ?></div>
    <div id="hirebottom"></div>
    </div>
    </div>
    </div>
    </div>
    If its an image, in the css put the width and the height according to the image, if its supposed to have text put text in it and it will show up

  3. #3
    Join Date
    Apr 2007
    Location
    england
    Posts
    536
    Tokens
    0

    Default

    I have the CSS for it, but it is't showing up.


    Selling DJ/Habbo layout, more info here.


  4. #4
    Join Date
    Apr 2007
    Location
    england
    Posts
    536
    Tokens
    0

    Default

    It's got to do with the PHP, I removed the PHP and it showed, I added the PHP and it doesn't show.

    Edited by opensourcehost (Forum Super Moderator): Please do not multiple post.
    Last edited by Mr.OSH; 02-12-2007 at 06:19 PM.


    Selling DJ/Habbo layout, more info here.


  5. #5
    ScottDiamond. Guest

    Default

    *Text Removed*

    Edited by opensourcehost (Forum Super Moderator): Please do not be rude.
    Last edited by Mr.OSH; 02-12-2007 at 06:19 PM.

  6. #6
    Join Date
    Apr 2007
    Location
    england
    Posts
    536
    Tokens
    0

    Default

    Quote Originally Posted by ScottDiamond. View Post
    *Text Removed*
    That helps.
    Last edited by Agesilaus; 03-12-2007 at 12:44 PM.


    Selling DJ/Habbo layout, more info here.


  7. #7
    ScottDiamond. Guest

    Default

    Quote Originally Posted by adamFTW View Post
    That helps.
    Yup, it does.

  8. #8
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    PHP Code:
    <div id="content">
    <div id="hiretop"></div>
    <div id="hiremiddle"><div id="hiremiddletext">
    <?php
    //Clean function, comment out if not wanted.

    function clean($string)
    {

        
    $string htmlspecialchars($stringENT_QUOTES);

        if (
    get_magic_quotes_gpc())
        {

            
    $string stripslashes($string);

        }

        
    $string str_replace("\""""$string);
        
    $string htmlentities($string);

        
    /**
         *  If you want SQL injection protection uncomment the next line
         */

        // $string = mysql_real_escape_string($string);

        
    return $string;

    }

    //The variables
    $name clean($_POST["name"]);
    $job clean($_POST["job"]);
    $wwspy clean($_POST["wwspy"]);
    $aboutme clean($_POST["aboutme"]);
    $email clean($_POST["email"]);

    if (
    $_GET["action"] == "submit")
    {
        echo 
    "Thank you for sending in your application! Here is what you sent in to us:<br>
        Name: 
    $name<br>
        Preffered Job: 
    $job<br>
        Why we should pick you: 
    $wwspy<br>
        About me: 
    $aboutme<br>
        Email: 
    $email<br>
        <br>
        For security purposes, we have logged you IP.<br>
        <strong>IP:</strong> 
    $_SERVER[REMOTE_ADDR]<br>";
    exit;
    }     

     
     echo 
    "XXX
    <br>
    <br>
    <form action=\"?action=submit\" method=\"post\">
        <div id=\"title\">Name:</div>
        <input type=\"text\" name=\"name\">
        <div id=\"title\">Email:</div>
        <input type=\"text\" name=\"email\">
        <div id=\"title\">Preffered Job:</div>
        <input type=\"text\" name=\"job\">
        <div id=\"title\">Why:</div>
        <style=\"width=\"169\"; height=\"116\"><textarea rows=\"7\" input type=\"text\" name=\"wwspy\" cols=\"28\"></textarea>
        <div id=\"title\">About me:</div>
        <style=\"width=\"169\"; height=\"116\"><textarea rows=\"7\" input type=\"text\" name=\"aboutme\" cols=\"28\"></textarea><br><br>
        <div id=\"submit\"><input type=\"submit\" name=\"submit\" value=\"Submit\">
        </form>"
    ;
        

    ?></div>
    <div id="hirebottom"></div>
    </div>
    </div>
    </div>
    </div>

  9. #9
    Join Date
    Apr 2007
    Location
    england
    Posts
    536
    Tokens
    0

    Default

    No, it still doesn't work.


    Selling DJ/Habbo layout, more info here.


  10. #10
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    PHP Code:
    <div id="content">
    <div id="hiretop"></div>
    <div id="hiremiddle"><div id="hiremiddletext">
    <?php
    //Clean function, comment out if not wanted.

    function clean($string)
    {

        
    $string htmlspecialchars($stringENT_QUOTES);

        if (
    get_magic_quotes_gpc())
        {

            
    $string stripslashes($string);

        }

        
    $string str_replace("\""""$string);
        
    $string htmlentities($string);

        
    /**
         *  If you want SQL injection protection uncomment the next line
         */

        // $string = mysql_real_escape_string($string);

        
    return $string;

    }

    //The variables
    $name clean($_POST["name"]);
    $job clean($_POST["job"]);
    $wwspy clean($_POST["wwspy"]);
    $aboutme clean($_POST["aboutme"]);
    $email clean($_POST["email"]);

    if (
    $_GET["action"] == "submit")
    {
        echo 
    "Thank you for sending in your application! Here is what you sent in to us:<br>
        Name: 
    $name<br>
        Preffered Job: 
    $job<br>
        Why we should pick you: 
    $wwspy<br>
        About me: 
    $aboutme<br>
        Email: 
    $email<br>
        <br>
        For security purposes, we have logged you IP.<br>
        <strong>IP:</strong> 
    $_SERVER[REMOTE_ADDR]<br>";

    }     

     
     echo 
    "XXX
    <br>
    <br>
    <form action=\"?action=submit\" method=\"post\">
        <div id=\"title\">Name:</div>
        <input type=\"text\" name=\"name\">
        <div id=\"title\">Email:</div>
        <input type=\"text\" name=\"email\">
        <div id=\"title\">Preffered Job:</div>
        <input type=\"text\" name=\"job\">
        <div id=\"title\">Why:</div>
        <style=\"width=\"169\"; height=\"116\"><textarea rows=\"7\" input type=\"text\" name=\"wwspy\" cols=\"28\"></textarea>
        <div id=\"title\">About me:</div>
        <style=\"width=\"169\"; height=\"116\"><textarea rows=\"7\" input type=\"text\" name=\"aboutme\" cols=\"28\"></textarea><br><br>
        <div id=\"submit\"><input type=\"submit\" name=\"submit\" value=\"Submit\">
        </form>"
    ;
        

    ?></div>
    <div id="hirebottom"></div>
    </div>
    </div>
    </div>
    </div>

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •