|
|||||||
Join now to share free website templates or post on the forum. If you have never been on a forum before read the
FAQ. It's quick, easy and free to join!
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Ok I have a few on line now.
http://www.bmcoll.com/pagetest/tutorials |
|
|||
|
Wouldn't it be good in you Maths Calculator script instead of escaping the " you end the PHP before the HTML and then start it again so its easy enough to see and edit (For the life of me I cant remember what its called!) plus people get used to the idea of it and how it works and life is nicer when working with loads of HTML.
|
|
||||
|
In my scripts I do start and stop the php instead of escaping the stuff in html.
I will show that method in another tutorial But I want to let users see how it is done this way first. I still need ideas on future tutorials come on guys give me some ideas please. I will have the tutorial on a sendmail script very soon. |
|
||||
|
ok some one asked for a sendmail or contact form script so here it is.
tutorial 2 Here is the basic script But please check out the tutorial and give me your opinion . Code:
<?php
//the info posted from the form
$ad=$_POST['sendto'];
$url=$_POST['subject'];
$email=$_POST['from'];
$message = $_POST['message'] ;
//done getting info
if (isset($_POST['sendto'])){ //CHECK TO SEE IF WE NEED TO DISPLAY FORM OR SEND MAIL.
mail ("$ad", "$url", $message, "From: $email") ;//send our message
echo"<input type=button value=\"Back\" onClick=\"history.go(-1)\">";//go back button
}else{
//start of our form - echo our html form
echo "<form action='".$_server['php_self']."' method='post'>";//tells the form to send info to this script
echo"<table>
<tr>
<td>Recipients email</td>
<td><input type=\"text\"name =\"sendto\"></td>
</tr>
<tr>
<td>Subject</td>
<td><input type=\"text\"name =\"subject\"></td>
</tr>
<td>Reply to email</td>
<td><input type=\"text\"name =\"from\"></td>
</tr>
<tr>
<td>Message</td>
<td><textarea rows=\"10\"cols=\"60\"name=\"message\"></textarea>
<br><input type=\"submit\"value=\"send email\"></td>
</tr>
</table>";
//end of our form
}
?>
|
|
||||
|
added two more . Again guys please help me here with some ideas on tutorials you would like to see.
learn php scripting |
![]() |
| Thread Tools | |
| Display Modes | |
|
|