Hi guys I`ve tried to install my Birthday Information script but I`m getting an error of an undifine function of Get_Qstring_('Post')
<?php
$ShowBookmark = "False";
Include'/home/steve/public_html/header.php';
if (Get_QString('Post') != "True") {
Show_Form("");
}
function getsign($day,$month) {
if(($month==1 && $day>20)||($month==2 && $day<20)){
return "Aquarius";
}else if(($month==02 && $day>18 )||($month==03 && $day<21)){
return "Pisces";
}else if(($month==03 && $day>20)||($month==04 && $day<21)){
return "Aries";
}else if(($month==04 && $day>20)||($month==05 && $day<22)){
return "Taurus";
}else if(($month==05 && $day>21)||($month==06 && $day<22)){
return "Gemini";
}else if(($month==6 && $day>21)||($month==07 && $day<24)){
return "Cancer";
}else if(($month==07 && $day>23)||($month==08 && $day<24)){
return "Leo";
}else if(($month==08 && $day>23)||($month==09 && $day<24)){
return "Virgo";
}else if(($month==09 && $day>23)||($month==10 && $day<24)){
return "Libra";
}else if(($month==10 && $day>23)||($month==11 && $day<23)){
return "Scorpio";
}else if(($month==11 && $day>22)||($month==12 && $day<23)){
return "Sagittarius";
}else if(($month==12 && $day>22)||($month==01 && $day<21)){
return "Capricorn";
}
}
function birthstone($month) {
if($month==1){
return "Garnet";
}else if($month==02){
return "Amethyst";
}else if($month==03){
return "Aquamarine";
}else if($month==04){
return "Diamond";
}else if($month==05){
return "Emerald";
}else if($month==6){
return "Pearl & Alexandrite";
}else if($month==07){
return "Ruby";
}else if($month==0{
return "Peridot";
}else if($month==09){
return "Sapphire";
}else if($month==10){
return "Opal & Tourmaline";
}else if($month==11){
return "Citrine";
}else if($month==12){
return "Topaz";
}
}
function Show_Form($Error) {
echo '<div class="hd2"><center><font color=#FAD02><strong>Algorithm "Day You Were Born"</strong></font></center></div><br>'."\n";
echo '<center>'."\n";
echo '<form method="post" action="Birthday.php?Post=True">'."\n";
if ($Error != "") { echo "<font color=#FF0000 size=2>".urldecode($Error)."</font><br><br>\n";}
echo ' <table border="0" cellpadding="0" cellspacing="0" style="font-size:9pt;width:100px;">'."\n";
echo ' <tr><td align=left>Day:</td></tr>'."\n";
echo ' <tr><td>'."\n";
echo ' <select name="Day" style="width:100%;">'."\n";
echo ' <option value="1" selected="selected">01</option>'."\n";
echo ' <option value="2">02</option>'."\n";
echo ' <option value="3">03</option>'."\n";
echo ' <option value="4">04</option>'."\n";
echo ' <option value="5">05</option>'."\n";
echo ' <option value="6">06</option>'."\n";
echo ' <option value="7">07</option>'."\n";
echo ' <option value="8">08</option>'."\n";
echo ' <option value="9">09</option>'."\n";
echo ' <option value="10">10</option>'."\n";
echo ' <option value="11">11</option>'."\n";
echo ' <option value="12">12</option>'."\n";
echo ' <option value="13">13</option>'."\n";
echo ' <option value="14">14</option>'."\n";
echo ' <option value="15">15</option>'."\n";
echo ' <option value="16">16</option>'."\n";
echo ' <option value="17">17</option>'."\n";
echo ' <option value="18">18</option>'."\n";
echo ' <option value="19">19</option>'."\n";
echo ' <option value="20">20</option>'."\n";
echo ' <option value="21">21</option>'."\n";
echo ' <option value="22">22</option>'."\n";
echo ' <option value="23">23</option>'."\n";
echo ' <option value="24">24</option>'."\n";
echo ' <option value="25">25</option>'."\n";
echo ' <option value="26">26</option>'."\n";
echo ' <option value="27">27</option>'."\n";
echo ' <option value="28">28</option>'."\n";
echo ' <option value="29">29</option>'."\n";
echo ' <option value="30">30</option>'."\n";
echo ' <option value="31">31</option>'."\n";
echo ' </select>';
echo ' </td></tr>'."\n";
echo ' <tr><td align=left>Month:</td></tr>'."\n";
echo ' <tr><td>'."\n";
echo ' <select name="Month" style="width:100%;">'."\n";
echo ' <option value="1" selected="selected">January</option>'."\n";
echo ' <option value="2">February</option>'."\n";
echo ' <option value="3">March</option>'."\n";
echo ' <option value="4">April</option>'."\n";
echo ' <option value="5">May</option>'."\n";
echo ' <option value="6">June</option>'."\n";
echo ' <option value="7">July</option>'."\n";
echo ' <option value="8">August</option>'."\n";
echo ' <option value="9">September</option>'."\n";
echo ' <option value="10">October</option>'."\n";
echo ' <option value="11">November</option>'."\n";
echo ' <option value="12">December</option>'."\n";
echo ' </select>';
echo ' </td></tr>'."\n";
echo ' <tr><td align=left>Year:</td></tr>'."\n";
echo ' <tr><td>'."\n";
echo ' <select name="Year" style="width:100%;">'."\n";
echo ' <option value="2009">2009</option>'."\n";
echo ' <option value="2008">2008</option>'."\n";
echo ' <option value="2007">2007</option>'."\n";
echo ' <option value="2006">2006</option>'."\n";
echo ' <option value="2005">2005</option>'."\n";
echo ' <option value="2004">2004</option>'."\n";
echo ' <option value="2003">2003</option>'."\n";
echo ' <option value="2002">2002</option>'."\n";
echo ' <option value="2001">2001</option>'."\n";
echo ' <option value="2000">2000</option>'."\n";
echo ' <option value="1999">1999</option>'."\n";
echo ' <option value="1998">1998</option>'."\n";
echo ' <option value="1997">1997</option>'."\n";
echo ' <option value="1996">1996</option>'."\n";
echo ' <option value="1995">1995</option>'."\n";
echo ' <option value="1994">1994</option>'."\n";
echo ' <option value="1993">1993</option>'."\n";
echo ' <option value="1992">1992</option>'."\n";
echo ' <option value="1991">1991</option>'."\n";
echo ' <option value="1990">1990</option>'."\n";
echo ' <option value="1989">1989</option>'."\n";
echo ' <option value="1988">1988</option>'."\n";
echo ' <option value="1987">1987</option>'."\n";
echo ' <option value="1986">1986</option>'."\n";
echo ' <option value="1985">1985</option>'."\n";
echo ' <option value="1984">1984</option>'."\n";
echo ' <option value="1983">1983</option>'."\n";
echo ' <option value="1982">1982</option>'."\n";
echo ' <option value="1981">1981</option>'."\n";
echo ' <option value="1980">1980</option>'."\n";
echo ' <option value="1979">1979</option>'."\n";
echo ' <option value="1978">1978</option>'."\n";
echo ' <option value="1976">1977</option>'."\n";
echo ' <option value="1975">1976</option>'."\n";
echo ' <option value="1974">1975</option>'."\n";
echo ' <option value="1973">1974</option>'."\n";
echo ' <option value="1973">1973</option>'."\n";
echo ' <option value="1971">1972</option>'."\n";
echo ' <option value="1970">1971</option>'."\n";
echo ' </select>';
echo ' </td></tr>'."\n";
echo ' <tr><td colspan="2" align=center><br><input type="submit" value="Find It!" name="Submit"></td></tr>'."\n";
echo ' </table>'."\n";
echo '</form>'."\n";
echo '</center>'."\n";
Show_Buttons("True", "index.php?Cmd=100");
}
if (Get_QString('Post') == "True") {
$Date_Day = GetPost('Day');
$Date_Month = GetPost('Month');
$Date_Year = GetPost('Year');
$hour = "23";
$h = mktime(0, 0, 0, $Date_Month, $Date_Day, $Date_Year);
$d = date("F dS, Y", $h) ;
$w= date("l", $h) ;
$Birthday= date("-l", $h) ;
$today = time();
$birthdate = mktime(0,0,0,GetPost('Month'),GetPost('Day'),GetPo st('Year'));
$birthdaythis = mktime(0,0,0,GetPost('Month'),GetPost('Day')); // birthday this year
$birthdaynext = mktime(0,0,0,GetPost('Month'),GetPost('Day'),date( 'Y')+1); // birthday next year
if($today < $birthdaythis){
$days = floor(($birthdaythis - $today)/60/60/24);
}elseif($today > $birthdaythis){
$days = floor(($birthdaynext - $today)/60/60/24);
}
$starsign = getsign($_POST['Day'],$_POST['Month']);
$birthstone = birthstone($_POST['Month']);
$date1 = time();
$date2 = mktime(0, 0, 0, $Date_Month, $Date_Day, $Date_Year);
$ddif = $date1 - $date2;
$age = floor(($ddif/(60*60*24))/365);
$dayfallson = mktime(0,0,0,$Date_Month,$Date_Day,date('Y',$today )+1);
echo '<div class="hd2"><center><font color=#FAD02><strong>Birthday Information</strong></font></center></div><br>'."\n";
echo '<font face="Verdana" size="2">You were born on a: <b>'.$w.'</b></font><br>'."\n";
echo '<font face="Verdana" size="2">Your Next Birthday falls on a: <b>'.date('l',$nextBirthDate).'</b></font><br>'."\n";
echo '<font face="Verdana" size="2">You Are now: <b>'.$age.'</b> Years old</font><br>'."\n";
echo '<font face="Verdana" size="2">There are: <b>'.$days.'</b> left Untill your birthday</font><br>'."\n";
echo '<font face="Verdana" size="2">Star Sign: <b>'.$starsign.'</b></font><br>'."\n";
echo '<font face="Verdana" size="2">Birthstone: <b>'.$birthstone.'</b></font><br>'."\n";
Show_Buttons("True", "index.php?Cmd=100");
}
function Show_Buttons($BackOnly, $Link) {
echo '<center>'.$GLOBALS["Advert03"].'</center>'."\n";
echo '<table id="" border="0" style="font-size:9pt;width:100%;">'."\n";
if ($BackOnly == "False") {
echo ' <tr style="font-color:#85859c;"><td style="width:10px;"><img src="Images/Logos/Logo_Scores.gif"></td><td>'."\n";
echo ' <font face="Verdana" size="2"><b><a href="Guestbook.php?Cmd=Sign">Sign Guestbook!</b></font></a><br>'."\n";
echo ' </td></tr>'."\n";
}
echo ' <tr style="font-color:#85859c;"><td style="width:10px;"><img src="Images/Logos/Logo_Back.gif"></td><td>'."\n";
echo ' <font face="Verdana" size="2"><b><a href="'.$Link.'">Back</b></font></a><br>'."\n";
echo ' </td></tr>'."\n";
echo '</table>'."\n";
echo '<hr>'."\n";
}
function GetPost($PostName) {
$Result = "";
if (!isset($_POST[$PostName])) {
$Result = "";
} elseif (empty($_POST[$PostName])) {
$Result = "";
} else {
$Result = $_POST[$PostName];
}
return $Result;
}
include 'Include/Footer.php';
Log_Hit("Birthday");
?>
<?php
$ShowBookmark = "False";
Include'/home/steve/public_html/header.php';
if (Get_QString('Post') != "True") {
Show_Form("");
}
function getsign($day,$month) {
if(($month==1 && $day>20)||($month==2 && $day<20)){
return "Aquarius";
}else if(($month==02 && $day>18 )||($month==03 && $day<21)){
return "Pisces";
}else if(($month==03 && $day>20)||($month==04 && $day<21)){
return "Aries";
}else if(($month==04 && $day>20)||($month==05 && $day<22)){
return "Taurus";
}else if(($month==05 && $day>21)||($month==06 && $day<22)){
return "Gemini";
}else if(($month==6 && $day>21)||($month==07 && $day<24)){
return "Cancer";
}else if(($month==07 && $day>23)||($month==08 && $day<24)){
return "Leo";
}else if(($month==08 && $day>23)||($month==09 && $day<24)){
return "Virgo";
}else if(($month==09 && $day>23)||($month==10 && $day<24)){
return "Libra";
}else if(($month==10 && $day>23)||($month==11 && $day<23)){
return "Scorpio";
}else if(($month==11 && $day>22)||($month==12 && $day<23)){
return "Sagittarius";
}else if(($month==12 && $day>22)||($month==01 && $day<21)){
return "Capricorn";
}
}
function birthstone($month) {
if($month==1){
return "Garnet";
}else if($month==02){
return "Amethyst";
}else if($month==03){
return "Aquamarine";
}else if($month==04){
return "Diamond";
}else if($month==05){
return "Emerald";
}else if($month==6){
return "Pearl & Alexandrite";
}else if($month==07){
return "Ruby";
}else if($month==0{
return "Peridot";
}else if($month==09){
return "Sapphire";
}else if($month==10){
return "Opal & Tourmaline";
}else if($month==11){
return "Citrine";
}else if($month==12){
return "Topaz";
}
}
function Show_Form($Error) {
echo '<div class="hd2"><center><font color=#FAD02><strong>Algorithm "Day You Were Born"</strong></font></center></div><br>'."\n";
echo '<center>'."\n";
echo '<form method="post" action="Birthday.php?Post=True">'."\n";
if ($Error != "") { echo "<font color=#FF0000 size=2>".urldecode($Error)."</font><br><br>\n";}
echo ' <table border="0" cellpadding="0" cellspacing="0" style="font-size:9pt;width:100px;">'."\n";
echo ' <tr><td align=left>Day:</td></tr>'."\n";
echo ' <tr><td>'."\n";
echo ' <select name="Day" style="width:100%;">'."\n";
echo ' <option value="1" selected="selected">01</option>'."\n";
echo ' <option value="2">02</option>'."\n";
echo ' <option value="3">03</option>'."\n";
echo ' <option value="4">04</option>'."\n";
echo ' <option value="5">05</option>'."\n";
echo ' <option value="6">06</option>'."\n";
echo ' <option value="7">07</option>'."\n";
echo ' <option value="8">08</option>'."\n";
echo ' <option value="9">09</option>'."\n";
echo ' <option value="10">10</option>'."\n";
echo ' <option value="11">11</option>'."\n";
echo ' <option value="12">12</option>'."\n";
echo ' <option value="13">13</option>'."\n";
echo ' <option value="14">14</option>'."\n";
echo ' <option value="15">15</option>'."\n";
echo ' <option value="16">16</option>'."\n";
echo ' <option value="17">17</option>'."\n";
echo ' <option value="18">18</option>'."\n";
echo ' <option value="19">19</option>'."\n";
echo ' <option value="20">20</option>'."\n";
echo ' <option value="21">21</option>'."\n";
echo ' <option value="22">22</option>'."\n";
echo ' <option value="23">23</option>'."\n";
echo ' <option value="24">24</option>'."\n";
echo ' <option value="25">25</option>'."\n";
echo ' <option value="26">26</option>'."\n";
echo ' <option value="27">27</option>'."\n";
echo ' <option value="28">28</option>'."\n";
echo ' <option value="29">29</option>'."\n";
echo ' <option value="30">30</option>'."\n";
echo ' <option value="31">31</option>'."\n";
echo ' </select>';
echo ' </td></tr>'."\n";
echo ' <tr><td align=left>Month:</td></tr>'."\n";
echo ' <tr><td>'."\n";
echo ' <select name="Month" style="width:100%;">'."\n";
echo ' <option value="1" selected="selected">January</option>'."\n";
echo ' <option value="2">February</option>'."\n";
echo ' <option value="3">March</option>'."\n";
echo ' <option value="4">April</option>'."\n";
echo ' <option value="5">May</option>'."\n";
echo ' <option value="6">June</option>'."\n";
echo ' <option value="7">July</option>'."\n";
echo ' <option value="8">August</option>'."\n";
echo ' <option value="9">September</option>'."\n";
echo ' <option value="10">October</option>'."\n";
echo ' <option value="11">November</option>'."\n";
echo ' <option value="12">December</option>'."\n";
echo ' </select>';
echo ' </td></tr>'."\n";
echo ' <tr><td align=left>Year:</td></tr>'."\n";
echo ' <tr><td>'."\n";
echo ' <select name="Year" style="width:100%;">'."\n";
echo ' <option value="2009">2009</option>'."\n";
echo ' <option value="2008">2008</option>'."\n";
echo ' <option value="2007">2007</option>'."\n";
echo ' <option value="2006">2006</option>'."\n";
echo ' <option value="2005">2005</option>'."\n";
echo ' <option value="2004">2004</option>'."\n";
echo ' <option value="2003">2003</option>'."\n";
echo ' <option value="2002">2002</option>'."\n";
echo ' <option value="2001">2001</option>'."\n";
echo ' <option value="2000">2000</option>'."\n";
echo ' <option value="1999">1999</option>'."\n";
echo ' <option value="1998">1998</option>'."\n";
echo ' <option value="1997">1997</option>'."\n";
echo ' <option value="1996">1996</option>'."\n";
echo ' <option value="1995">1995</option>'."\n";
echo ' <option value="1994">1994</option>'."\n";
echo ' <option value="1993">1993</option>'."\n";
echo ' <option value="1992">1992</option>'."\n";
echo ' <option value="1991">1991</option>'."\n";
echo ' <option value="1990">1990</option>'."\n";
echo ' <option value="1989">1989</option>'."\n";
echo ' <option value="1988">1988</option>'."\n";
echo ' <option value="1987">1987</option>'."\n";
echo ' <option value="1986">1986</option>'."\n";
echo ' <option value="1985">1985</option>'."\n";
echo ' <option value="1984">1984</option>'."\n";
echo ' <option value="1983">1983</option>'."\n";
echo ' <option value="1982">1982</option>'."\n";
echo ' <option value="1981">1981</option>'."\n";
echo ' <option value="1980">1980</option>'."\n";
echo ' <option value="1979">1979</option>'."\n";
echo ' <option value="1978">1978</option>'."\n";
echo ' <option value="1976">1977</option>'."\n";
echo ' <option value="1975">1976</option>'."\n";
echo ' <option value="1974">1975</option>'."\n";
echo ' <option value="1973">1974</option>'."\n";
echo ' <option value="1973">1973</option>'."\n";
echo ' <option value="1971">1972</option>'."\n";
echo ' <option value="1970">1971</option>'."\n";
echo ' </select>';
echo ' </td></tr>'."\n";
echo ' <tr><td colspan="2" align=center><br><input type="submit" value="Find It!" name="Submit"></td></tr>'."\n";
echo ' </table>'."\n";
echo '</form>'."\n";
echo '</center>'."\n";
Show_Buttons("True", "index.php?Cmd=100");
}
if (Get_QString('Post') == "True") {
$Date_Day = GetPost('Day');
$Date_Month = GetPost('Month');
$Date_Year = GetPost('Year');
$hour = "23";
$h = mktime(0, 0, 0, $Date_Month, $Date_Day, $Date_Year);
$d = date("F dS, Y", $h) ;
$w= date("l", $h) ;
$Birthday= date("-l", $h) ;
$today = time();
$birthdate = mktime(0,0,0,GetPost('Month'),GetPost('Day'),GetPo st('Year'));
$birthdaythis = mktime(0,0,0,GetPost('Month'),GetPost('Day')); // birthday this year
$birthdaynext = mktime(0,0,0,GetPost('Month'),GetPost('Day'),date( 'Y')+1); // birthday next year
if($today < $birthdaythis){
$days = floor(($birthdaythis - $today)/60/60/24);
}elseif($today > $birthdaythis){
$days = floor(($birthdaynext - $today)/60/60/24);
}
$starsign = getsign($_POST['Day'],$_POST['Month']);
$birthstone = birthstone($_POST['Month']);
$date1 = time();
$date2 = mktime(0, 0, 0, $Date_Month, $Date_Day, $Date_Year);
$ddif = $date1 - $date2;
$age = floor(($ddif/(60*60*24))/365);
$dayfallson = mktime(0,0,0,$Date_Month,$Date_Day,date('Y',$today )+1);
echo '<div class="hd2"><center><font color=#FAD02><strong>Birthday Information</strong></font></center></div><br>'."\n";
echo '<font face="Verdana" size="2">You were born on a: <b>'.$w.'</b></font><br>'."\n";
echo '<font face="Verdana" size="2">Your Next Birthday falls on a: <b>'.date('l',$nextBirthDate).'</b></font><br>'."\n";
echo '<font face="Verdana" size="2">You Are now: <b>'.$age.'</b> Years old</font><br>'."\n";
echo '<font face="Verdana" size="2">There are: <b>'.$days.'</b> left Untill your birthday</font><br>'."\n";
echo '<font face="Verdana" size="2">Star Sign: <b>'.$starsign.'</b></font><br>'."\n";
echo '<font face="Verdana" size="2">Birthstone: <b>'.$birthstone.'</b></font><br>'."\n";
Show_Buttons("True", "index.php?Cmd=100");
}
function Show_Buttons($BackOnly, $Link) {
echo '<center>'.$GLOBALS["Advert03"].'</center>'."\n";
echo '<table id="" border="0" style="font-size:9pt;width:100%;">'."\n";
if ($BackOnly == "False") {
echo ' <tr style="font-color:#85859c;"><td style="width:10px;"><img src="Images/Logos/Logo_Scores.gif"></td><td>'."\n";
echo ' <font face="Verdana" size="2"><b><a href="Guestbook.php?Cmd=Sign">Sign Guestbook!</b></font></a><br>'."\n";
echo ' </td></tr>'."\n";
}
echo ' <tr style="font-color:#85859c;"><td style="width:10px;"><img src="Images/Logos/Logo_Back.gif"></td><td>'."\n";
echo ' <font face="Verdana" size="2"><b><a href="'.$Link.'">Back</b></font></a><br>'."\n";
echo ' </td></tr>'."\n";
echo '</table>'."\n";
echo '<hr>'."\n";
}
function GetPost($PostName) {
$Result = "";
if (!isset($_POST[$PostName])) {
$Result = "";
} elseif (empty($_POST[$PostName])) {
$Result = "";
} else {
$Result = $_POST[$PostName];
}
return $Result;
}
include 'Include/Footer.php';
Log_Hit("Birthday");
?>
Comment