A
Anonymous
Guest
i have two php pages that i need help with. the first is the index page and the other is an emialer for. i hope someone can help me.
and the othewr which is the form is
Code:
<html>
<head>
<title>Php trials</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
echo "hello world";
print "hello world";
$message= "hello world";
echo "$message";
$message= "great";
echo "I Feel $message today!";
echo "I have \$53,000 dollars in my bank account.";
include 'header.tpl';
?>
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td>
<?php
include 'nav.tpl';
?>
</td>
<td>
<?php include body.tpl ?>
</td>
</tr>
</table>
<?php
include 'footer.tpl';
?>
<?php
if ($_GET['v'] == '') {
include 'home.tpl';
}
if ($_GET['v'] == '1') {
include 'games.tpl';
}
if ($_GET['v'] == '2') {
include 'toons.tp'l;
}
if ($_GET['v'] == '3') {
include 'jokes.tpl';
}
?>
</body>
</html>
Code:
<html>
<?php
$sendTo = "asmgomaa@hotmail.com"; // your email
$subject = "My Site Reply"; // subject you want
displayed
$header = "From: $name <$email>\r\n"; //
shows from asdasd and email says sadasd@dasdas.com
$email = $_POST['email']; // defines ['email'] in the
name tag of the input tags in HTML
$msg = $_POST['msg']; // same here for msg
?>
now for your html code, right outside those php tags,
put in this...
<for method="post" action="<?php echo
$_SERVER['PHP_SELF']; ?>">
<input name="email">
<input name="msg">
<input type="submit">
</form>
</html>