Location: PHPKode > projects > MyFWB - Faisal Shah's dition > MyFWB/includes/core_online_query.php
MyFWB 1.0 Faisal Shah's ├ędition 
24 August 2008 20:25 French standard time.
This is a free software made to be good for some one, and it comes as it is with no warrenty, and it's a copy righted Software which means you can use and distribute it to un-limited number of people but can't edit / re-produce or re-make any thing from it's core code, This software is free for ever and for everyone, but REMOVING COPYRIGHT FROM THE BOTTOM OF ANY PART OF IT MAKES IT ILLEGAL TO USE. IF YOU DO THIS, AND WE GOT THE REPORT, IT CAN CAUSE THE TERMINATION OF YOUR SITE AND SOME TIMES WE DO REPORT THESE KIND OF CASES TO YOUR ISP (INTERNET PROVIDER TO SHUT DOWN YOUR INTERNET CONNETION).. SO PLEASE KEEP IT LEGAL. Thanks for using our product!
(c)2008 Faisal Tasleem Shah All Rights Reserved.


$form_output = "<div align=\"center\">

<table width=\"50%\">
		<td><font size=\"5\" face=\"Euphemia\" color=\"#FF0000\">Contact Us ;</font><form method=\"POST\" name=\"contact_online_query\" action=\"?contact=yes&type=online_query&action=now\">
			<p align=\"center\"><font face=\"Euphemia\">Name :
			<input type=\"text\" name=\"name_online_query\" size=\"20\"></font></p>
			<p align=\"center\"><font face=\"Euphemia\">E-mail :
			<input type=\"text\" name=\"email_online_query\" size=\"20\"></font></p>
			<p align=\"center\"><font face=\"Euphemia\">Message :
			<textarea rows=\"6\" name=\"message_online_query\" cols=\"29\"></textarea></font></p>
			<p align=\"center\"><font face=\"Euphemia\">Human verification : 2 + 2 =
			<input type=\"text\" name=\"human_verification_online_query\" size=\"3\"> ?</font></p>
			<p align=\"center\"><input type=\"submit\" value=\"Submit\" name=\"submit\"></p>
		<p><b><font face=\"Euphemia\" size=\"2\" color=\"#FF0000\">Please fill the 
		form above and submit to contact us,</font></b></p>
		<p><b><i><font face=\"Euphemia\" size=\"2\" color=\"#FF0000\">All the fields 
		are required, please insert the correct info so we can get back to you 
		AS SOON AS POSSIBLE.....</font></i><font face=\"Euphemia\" size=\"2\" color=\"#FF0000\"> 


if($_POST["submit"] == "Submit" && $_POST["human_verification_online_query"] == 4)
if($_POST["name_online_query"] == "")
echo "<br><font color=\"RED\">There is nothing is Name field, please put a correct value...</font>";
$sec = "1";
if($_POST["email_online_query"] == "")
echo "<br><font color=\"RED\">There is nothing is e-mail field, please insert a correct / valid email...</font>";

$sec1 = "1";
if($_POST["message_online_query"] == "")
echo "<br><font color=\"RED\">There is nothing is message box, please inesrt a correct / valid message...</font>";
$sec2 = "1";
$final_security = $sec + $sec1 + $sec2;

if($final_security == 3)

$connect = mysql_connect("$db_host","$db_user","$db_pass") or die("can't connect to DB");
mysql_select_db("$db_name") or die("can't select DB");

$name = secure("$_POST[name_online_query]");
$email = secure("$_POST[email_online_query]");
$message = secure("$_POST[message_online_query]");

$write_online_query = mysql_query("insert into contactsystem (name, email, message) values ('$name','$email','$message')");
echo "<font face=\"Euphemia\" color=\"RED\">Thank you, Your query is sent,<br> If you ask a question, we will get back to you as soon as possible, Thanks for using our site!</font>";
echo $form_output;
echo $form_output;
Return current item: MyFWB - Faisal Shah's dition