PDA

View Full Version : Footer



adamFTW
02-12-2007, 03:08 PM
I have a problem, the div hirebottom, isn't showing up. Heres the 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>

Blob
02-12-2007, 03:16 PM
I have a problem, the div hirebottom, isn't showing up. Heres the 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

adamFTW
02-12-2007, 03:22 PM
I have the CSS for it, but it is't showing up.

adamFTW
02-12-2007, 03:23 PM
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.

ScottDiamond.
02-12-2007, 03:28 PM
*Text Removed*

Edited by opensourcehost (Forum Super Moderator): Please do not be rude.

adamFTW
02-12-2007, 03:40 PM
*Text Removed*

That helps.

ScottDiamond.
02-12-2007, 03:42 PM
That helps.

Yup, it does.

Blob
02-12-2007, 03:56 PM
<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>";


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

adamFTW
02-12-2007, 05:17 PM
No, it still doesn't work.

Blob
02-12-2007, 05:34 PM
<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>";

}


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>

adamFTW
02-12-2007, 06:04 PM
It's not aligned.

http://www.ohupload.com/files/1196618639.gif

Want to hide these adverts? Register an account for free!