plodos
-
Posts
212 -
Joined
-
Last visited
Posts posted by plodos
-
-
thnx...
-
<?php $title = $_REQUEST['title']; $date = $_REQUEST['date']; $notices = $_REQUEST['notices']; echo " <br >outout is <br><br> $title $date <br><br> $notices<br> "; echo "<td><a href=\"addnotices.php?title=$title&date=$date¬ices=$notices\"> edit! </a> <br>"; <form action="sendnotices.php" method="post"> <INPUT TYPE=hidden NAME="title" VALUE='.$_GET['title'].'> <INPUT TYPE=hidden NAME="date" VALUE= '. $_GET['date'].' > <INPUT TYPE=hidden NAME="notices" VALUE='.$_GET['notices'].' > <input name="Submit" type="submit" value="SEND to list and SAVE to the Dbase"/> </form> ?>
at first, i used $title = $_REQUEST['title']; this for show the output!!!
and if the outpus is tru user will click to button for SEND and SAVE to database...
anyway
i want to use one more time these variables $title,$date,$notice inside of the hidden form like
<INPUT TYPE=hidden NAME="title" VALUE='.$_GET['title'].'> ......
but this from is not sending the values to another page..
could you check it please? maybe I didnt see the errors?
thnx for everything!...
-
date("l dS of F Y h:i:s A");
this function is not showing the real time&date/current time&date.
What must I write for see the current time/current date..
-
ok, i did it...
rhodesa's code is working clearly..thnx
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <html> <head> </head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <body> <?php $name = "xxx"; $surname = "yyy"; $to="bbb@bbb.com"; $aut_email="xxx@xxx.com"; $headers = "From: $aut_email \n"; $headers .= 'MIME-Version: 1.0' . "\n"; $headers .= 'Content-type: text/html; charset=iso-8859-9' . "\n"; $message= ' <table width="522" height="235" border="1"> <tr> <td width="105" height="23" bgcolor="#CCCCCC">Name Surname </td> <td width="403" bgcolor="#CCCCCC">'.$name.' '.$surname.'</td> </tr> </table>'; if(mail($to, $title,$message,$headers)) echo "send"; else "not send" ?> </body> </html>
i put the mime, but it is not working
I dont know how many methods i applied
I didnt solve this problem?
-
like that
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <html> <head> </head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <body> <?php $name = "xxx"; $to="boraardil@gmail.com"; $aut_email="xxx@xxx.com"; $headers = "From: $aut_email \n"; $message= " <table width=\"522\" height=\"235\" border=\"1\"> <tr> <td width=\"105\" height=\"23\" bgcolor=\"#CCCCCC\">Name Surname </td> <td width=\"403\" bgcolor=\"#CCCCCC\">$name</td> </tr> </table>"; if(mail($to, $title,$message,$headers)) echo "send"; else "not send" ?> </body> </html>
in my opinion, you didnt test it...It is not working
Another way? Problem is same still mixing the code?????????????????
-
this code is a little easy to understand...
but problem is same, mixing the HTML codes and Variables...
for example like that -> http://img405.imageshack.us/img405/9733/testrs6.jpg
Have u any idea, for this code!!!!! why its mixing and solution way?_?????
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <html> <head> </head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <body> <?php $name = "xxx"; $surname = "yyy"; $to="bbb@bbb.com"; $aut_email="xxx@xxx.com"; $headers = "From: $aut_email \n"; $message= ' <table width="522" height="235" border="1"> <tr> <td width="105" height="23" bgcolor="#CCCCCC">Name Surname </td> <td width="403" bgcolor="#CCCCCC">'.$name.' '.$surname.'</td> </tr> </table>'; if(mail($to, $title,$message,$headers)) echo "send"; else "not send" ?> </body> </html>
-
I have a problem email script is working but not correctly...
Problem is mixing the HTML codes and form informations..I upload the OUTPUT of the email...
http://img405.imageshack.us/img405/9733/testrs6.jpg
Did u check the link?..informations are not clear...
And also source codes are here, http://www.2shared.com/file/2868783/4e4fbc1b/code.html
Could you check it for me...Maybe I didnt see the errors:S
<?php $fullname = $_REQUEST["fullname"]; $country = $_REQUEST["country"]; $institution = $_REQUEST["institution"]; $subject = $_REQUEST["subject"]; $message = $_REQUEST["message"]; $from = $_REQUEST["from"]; $verif_box = $_REQUEST["verif_box"]; $now = time(); $date = date("d/m/Y H:i:s",$now); $ip = $_SERVER['REMOTE_ADDR']; $content ="<table width=522 height=235 border=1>"; $content .="<tbody><tr><td width=506 height=23 bgcolor=#FFFFFF colspan=2>"; $content .="<center>ONLINE FORM </center> <br>"; $content .="Date : $date IP Adress :$ip"; $content .="</td></tr>"; $content .="<tr><td width=105 height=23 bgcolor=#CCCCCC>Full Name </td>"; $content .="<td width=403 bgcolor=#CCCCCC>$fullname</td></tr>"; $content .="<tr><td height=23 valign=top>Institution</td>"; $content .="<td>$institution</td></tr>"; $content .="<tr><td bgcolor=#CCCCCC>Country</td>"; $content .="<td bgcolor=#CCCCCC>$country</td></tr>"; $content .="<tr><td height=29>From</td>"; $content .="<td>$from</td></tr>"; $content .="<tr>"; $content .="<td height=25 bgcolor=#CCCCCC>Comments</td>"; $content .="<td bgcolor=#CCCCCC>$message</td>"; $content .="</tr>"; $content .="</tbody>"; $content .="</table>"; $headers = "ONLINE FORM <$from>\n"; $headers .= 'MIME-Version: 1.0' . "\n"; $headers .= 'Content-type: text/html; charset=iso-8859-9' . "\n"; if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){ mail("seas@gmail.com", 'ONLINE FORM: '.$subject,$content,$headers); setcookie('tntcon',''); } else { header("Location:".$_SERVER['HTTP_REFERER']."?subject=$subject&fullname=$fullname&country=$country&institution=&institution& from=$from&message=$message&wrong_code=true"); exit; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>E-Mail Sent</title> <style type="text/css"> <!-- body,td,th { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } --> </style></head> <body> Email sent. Thank you.<br /> <br /> Return to <a href="/">home page</a> ? </body> </html>
-
I have a problem like that email script is working but not correctly...
Problem is mixing the HTML codes and form informations..I upload the OUTPUT of the email...
http://img405.imageshack.us/img405/9733/testrs6.jpg
Did u check the link?..Bad codes, must be clear user interface :S
I used two different methods, I didnt understand the mistake???
METHOD 1
<?php $fullname = $_REQUEST["fullname"]; $country = $_REQUEST["country"]; $institution = $_REQUEST["institution"]; $subject = $_REQUEST["subject"]; $message = $_REQUEST["message"]; $from = $_REQUEST["from"]; $verif_box = $_REQUEST["verif_box"]; $now = time(); $date = date("d/m/Y H:i:s",$now); $content =' <table width="522" height="235" border="1"> <tbody> <tr> <td width="506" height="23" bgcolor="#FFFFFF" colspan="2"> <center>ONLINE FORM </center> <br> Date : '.$date.' IP Adress :'.$_SERVER['REMOTE_ADDR'].' </td> </tr> <tr> <td width="105" height="23" bgcolor="#CCCCCC">Full Name </td> <td width="403" bgcolor="#CCCCCC">'.$fullname.'</td> </tr> <tr> <td height="23" valign="top">Institution</td> <td>'.$institution.'</td> </tr> <tr> <td bgcolor="#CCCCCC">Country</td> <td bgcolor="#CCCCCC">'.$country.'</td> </tr> <tr> <td height="29">From</td> <td>'.$from.'</td> </tr> <tr> <td height="25" bgcolor="#CCCCCC">Comments</td> <td bgcolor="#CCCCCC">'.$message.'</td> </tr> </tbody> </table>'; $headers .= ONLINE FORM <$from>\n"; $headers .= 'MIME-Version: 1.0' . "\n"; $headers .= 'Content-type: text/html; charset=iso-8859-9' . "\n"; if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){ mail("seas@gmail.com", 'ONLINE FORM: '.$subject,$content,$headers); setcookie('tntcon',''); } else { header("Location:".$_SERVER['HTTP_REFERER']."?subject=$subject&fullname=$fullname&country=$country&institution=&institution& from=$from&message=$message&wrong_code=true"); exit; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>E-Mail Sent</title> <style type="text/css"> <!-- body,td,th { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } --> </style></head> <body> Email sent. Thank you.<br /> <br /> Return to <a href="/">home page</a> ? </body> </html>
METHOD 2
<?php $fullname = $_REQUEST["fullname"]; $country = $_REQUEST["country"]; $institution = $_REQUEST["institution"]; $subject = $_REQUEST["subject"]; $message = $_REQUEST["message"]; $from = $_REQUEST["from"]; $verif_box = $_REQUEST["verif_box"]; $now = time(); $date = date("d/m/Y H:i:s",$now); $ip = $_SERVER['REMOTE_ADDR']; $content ="<table width=522 height=235 border=1>"; $content .="<tbody><tr><td width=506 height=23 bgcolor=#FFFFFF colspan=2>"; $content .="<center>ONLINE FORM </center> <br>"; $content .="Date : $date IP Adress :$ip"; $content .="</td></tr>"; $content .="<tr><td width=105 height=23 bgcolor=#CCCCCC>Full Name </td>"; $content .="<td width=403 bgcolor=#CCCCCC>$fullname</td></tr>"; $content .="<tr><td height=23 valign=top>Institution</td>"; $content .="<td>$institution</td></tr>"; $content .="<tr><td bgcolor=#CCCCCC>Country</td>"; $content .="<td bgcolor=#CCCCCC>$country</td></tr>"; $content .="<tr><td height=29>From</td>"; $content .="<td>$from</td></tr>"; $content .="<tr>"; $content .="<td height=25 bgcolor=#CCCCCC>Comments</td>"; $content .="<td bgcolor=#CCCCCC>$message</td>"; $content .="</tr>"; $content .="</tbody>"; $content .="</table>"; $headers = "ONLINE FORM <$from>\n"; $headers .= 'MIME-Version: 1.0' . "\n"; $headers .= 'Content-type: text/html; charset=iso-8859-9' . "\n"; if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){ mail("seas@gmail.com", 'ONLINE FORM: '.$subject,$content,$headers); setcookie('tntcon',''); } else { header("Location:".$_SERVER['HTTP_REFERER']."?subject=$subject&fullname=$fullname&country=$country&institution=&institution& from=$from&message=$message&wrong_code=true"); exit; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>E-Mail Sent</title> <style type="text/css"> <!-- body,td,th { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } --> </style></head> <body> Email sent. Thank you.<br /> <br /> Return to <a href="/">home page</a> ? </body> </html>
link error/s ?
in PHP Coding Help
Posted
addnotices.php
sendnotices.php
problem is, when I click ""<a href=\"addnotices.php?title=$title&date=$date¬ices=$notices\"> edit notices! </a>"" , addnotices.php page is not showing the content..thats very difficult to explain for me...if you check it your local server you will see the error!
for example write the form,
more information <a href="http://www.google.com">Search Google!</a>
and click the send button, you will see what happened!
if I write the link in the form and if I click the Send button, everything is mixing,
but if I write normal sentences everything is clear :S