<?php
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\"
?>
echo "";
?>
<?php
$strSender =$SenderEmail;
$strHeader = "Return-Path: $strSender\nErrors-To: $strSender\nFrom:$SenderName<$strSender>";
if (mail($Email,$Subject,$Message, "$strHeader")) :
print "Message has been sent to $Email";
else :
<?php
// send wml headers
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\"
?>
echo "";
?>
<?php
// first read the file into a buffer, if it exists
// open in read mode only
if ($fp = @fopen ("guestbook.data", "r")){
$entries = @fread($fp,filesize("guestbook.data"));
@fclose(fp);
}
print "&entries=".$entries;
?><?php
$date = date( "l, F j Y, h:i a");
if ($homepage == "" || $email == "" || $name == "" || $comments == "") { //error checking
header("Location: guestbook.html");
exit;
}
$message .="Name: $name \n";
$message .="Email: $email \n";
$message .="Homepage: $homepage \n";
$message .="Comments: $comments \n";
$message .="Date: $date \n";
$message .="----------------------------- \n";
if ($message){
// first read the file into a buffer, if it exists
// open in read mode only
<?php
if (($homepage == "") || ($email == "") || ($name == "") || ($comments == "")) {
header("Location: <a href="http://localhost/php/flash/guestbook.html"" title="http://localhost/php/flash/guestbook.html"">http://localhost/php/flash/guestbook.html"</a>);
exit;
}
?>
Guestbook Submission information
Thanks,
<?php
echo "$name";
?><?php
echo "$email";
?><?php
echo "$email";
?><?php
echo "$homepage";
?><?php
echo "$homepage";
?>
<?php
// send wml headers
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\"
?>
echo "";
?>
<?php
function mycal_show_month_day($yr, $mnt, $day)
{
return($day);
}
function mycal_show_month($day_callback, $yr = 0, $mnt = 0)
{
// set up default value for month (current month) if none was specified
if($mnt == 0)
{
$mnt = date( "m");
JavaScript Form Check
[]{}`\';()@&$#%";
for (var i = 0; i < string.length; i++) {
if (iChars.indexOf(string.charAt(i)) != -1)
return false;
}
for (var i = 0; i < string2.length; i++) {
if (iChars.indexOf(string2.charAt(i)) != -1)
return false;
}
return true;
}
//make check to see if the string only contains numbers, letters
<?php
if ($_POST['submit'] && $_POST['money']){
$dinero = implode($_POST['money'], ",");
$vals=explode(",",$dinero);
?>
How much money would you like to earn per week?
>100
200
<?php
if ($_POST['submit'] && $_POST['food']){
$favfood = $_POST['food'];
?>
<form method="post" action="populate4.php">
What is your favorite food to eat? <BR>
<TEXTAREA NAME="food" ROWS=5 COLS=35 wrap=virtual>
<?php echo $favfood?>
</TEXTAREA>
<input type="submit" name="submit" value="submit">
<form>
<?
}else{
?>
<form method="post" action="populate4.php">
What is your favorite food to eat? <BR>
<TEXTAREA NAME="food" ROWS=5 COLS=35 wrap=virtual></TEXTAREA>
<input type="submit" name="submit" value="submit">
</form>
<?
}
?>
<?php
if ($_POST['submit'] && $_POST['colors']){
$cols = implode($_POST['colors'], ",");
$vals=explode(",",$cols);
?>
What color(s) do you like?
>Yellow
Orange