Click here to Skip to main content
15,886,732 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: Turbolinux site in English Pin
Richard MacCutchan18-Mar-10 23:00
mveRichard MacCutchan18-Mar-10 23:00 
GeneralRe: Turbolinux site in English Pin
Indivara19-Mar-10 0:43
professionalIndivara19-Mar-10 0:43 
QuestionProject Management CMS Pin
MatrixCoder27-Feb-10 15:56
MatrixCoder27-Feb-10 15:56 
AnswerRe: Project Management CMS Pin
fly9045-Mar-10 11:37
fly9045-Mar-10 11:37 
Questionquestion on php imap_open, base64_decode and csv file attachments Pin
cjoki25-Feb-10 6:39
cjoki25-Feb-10 6:39 
AnswerRe: question on php imap_open, base64_decode and csv file attachments Pin
Graham Breach25-Feb-10 7:33
Graham Breach25-Feb-10 7:33 
GeneralRe: question on php imap_open, base64_decode and csv file attachments Pin
cjoki25-Feb-10 10:00
cjoki25-Feb-10 10:00 
Questionwhy not submit Pin
KARFER25-Feb-10 2:04
KARFER25-Feb-10 2:04 
hi all

i try to develope feedback system by php and i make two pages the first is feedback.php and this is it's code
<br />
//this is feedback.php<br />
<form name="feedback" method="post" action="FeedBackCheck.php"><br />
			<table width="550" border="0" align="center" cellpadding="1" cellspacing="2"><br />
              <tr><br />
                <td colspan="2"><div align="center"> </div></td><br />
                </tr><br />
              <tr><br />
                <td width="114">&nbsp;</td><br />
                <td width="426">&nbsp;</td><br />
              </tr><br />
              <tr><br />
                <td>Name</td><br />
                <td><label><br />
                  <input name="txtName" type="text" id="txtName" tabindex="0" size="54" maxlength="254" /><br />
                </label></td><br />
              </tr><br />
              <tr><br />
                <td>Subject</td><br />
                <td><label><br />
                  <input name="txtSubject" type="text" id="txtSubject" tabindex="1" size="54" maxlength="254" /><br />
                </label></td><br />
              </tr><br />
              <tr><br />
                <td>Email</td><br />
                <td><label><br />
                  <input name="txtEmail" type="text" id="txtEmail" tabindex="2" size="54" maxlength="254" /><br />
                </label></td><br />
              </tr><br />
              <tr><br />
                <td>Message</td><br />
                <td><label><br />
                  <textarea name="txtMessage" cols="41" rows="7"  id="EDITOR" tabindex="3"></textarea><br />
                </label></td><br />
              </tr><br />
              <tr><br />
                <td colspan="2"><label><br />
                  <div align="center"><br />
                    <input name="btnSend" type="submit" id="btnSend" tabindex="4" value="send" /><br />
                    </div><br />
                </label></td><br />
                </tr><br />
            </table><br />
			</form><br />



and the second page name FeedBackCheck.php and it's code

<br />
$txtName 	= trim($_POST['txtName']);<br />
$txtSubject	= trim($_POST['txtSubject']);<br />
$txtEmail 	= trim($_POST['txtEmail']);<br />
$txtMessage	= trim($_POST["txtMessage"]);<br />
$txtDate	= date('d-m-Y');<br />
<br />
	if ($btnSend == "send")<br />
	{	<br />
		$to = "jameil_hamzh@yahoo.com";<br />
		$insertFeedBack = "INSERT INTO FeedBack(FD_Name,FD_Subject,FD_Email,FD_Message,FD_Date) VALUES ('$txtName','$txtSubject','$txtEmail','$txtMessage','$txtDate')";<br />
		<br />
		$resultInsert = mysql_query($insertFeedBack);<br />
		<br />
			if ($resultInsert)<br />
			{<br />
				echo ("<b><div class='ok' align='center' style='color:#0099CC'>the data send to us seccessfully</div>");<br />
			}<br />
			else<br />
			{<br />
				echo ("<b><br><center><div class='error' align='center' style='color:#990000'>error .. there is an error .. try later</div></center>");<br />
			}<br />
		<br />
		<br />
			@mail($to,$txtSubject,$txtMessage,'From:'.$txtEmail);<br />
	}<br />
	else<br />
	{<br />
		echo ("<div class='error' style='color:red' align='center'>error .. you don't fill all fields</div>");<br />
		echo "<meta http-equiv='refresh' content=5;url='FeedBack.php'>";<br />
	}	




and when i press the button send this message displayed to me always error .. you don't fill all fields
-*-*-*-*-*-*-*-*-*
To Be Or Not To Be
(KARFER)
-*-*-*-*-*-*-*-*-*

AnswerRe: why not submit Pin
Marc Firth25-Feb-10 2:29
Marc Firth25-Feb-10 2:29 
GeneralRe: why not submit Pin
KARFER25-Feb-10 4:33
KARFER25-Feb-10 4:33 
GeneralRe: why not submit Pin
cjoki25-Feb-10 6:20
cjoki25-Feb-10 6:20 
Questionhow to unzip files on unix that are zipped on windows Pin
msubbaraodba25-Feb-10 0:56
msubbaraodba25-Feb-10 0:56 
AnswerRe: how to unzip files on unix that are zipped on windows Pin
MatrixCoder27-Feb-10 16:10
MatrixCoder27-Feb-10 16:10 
QuestionAd insertion technique Pin
booota24-Feb-10 22:59
booota24-Feb-10 22:59 
QuestionRetrieving images from mysql database n display using php Pin
sarang_k21-Feb-10 22:32
sarang_k21-Feb-10 22:32 
AnswerRe: Retrieving images from mysql database n display using php Pin
Graham Breach21-Feb-10 23:27
Graham Breach21-Feb-10 23:27 
Questionsolve my code Pin
itishree parida20-Feb-10 17:34
itishree parida20-Feb-10 17:34 
AnswerRe: solve my code Pin
cjoki25-Feb-10 6:44
cjoki25-Feb-10 6:44 
QuestionHow to redirect ? Pin
udch20-Feb-10 3:14
udch20-Feb-10 3:14 
AnswerRe: How to redirect ? Pin
fly90420-Feb-10 5:33
fly90420-Feb-10 5:33 
GeneralRe: How to redirect ? Pin
udch20-Feb-10 7:00
udch20-Feb-10 7:00 
Questionhelp me translate site german to english Pin
ariodoni19-Feb-10 22:45
ariodoni19-Feb-10 22:45 
AnswerRe: help me translate site german to english Pin
abushahin23-Feb-10 13:09
abushahin23-Feb-10 13:09 
QuestionProblem with double quote Pin
sarang_k15-Feb-10 19:08
sarang_k15-Feb-10 19:08 
AnswerRe: Problem with double quote Pin
Graham Breach15-Feb-10 21:21
Graham Breach15-Feb-10 21:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.