email2.phps


<?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 :

      Subscribe in a reader

email1.phps


<?php
 
// send wml headers
header("Content-type: text/vnd.wap.wml"); 
echo
"<?xml version=\"1.0\"
?>
";
echo "";
?>

      Subscribe in a reader

entries.phps

<?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;
?>

      Subscribe in a reader

guest.phps

<?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

      Subscribe in a reader

guestbook.phps


<?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";
?>
.
(Email: <?php
echo "$email";
?>
">
<?php
echo "$email";
?>
),
Homepage: <?php
echo "$homepage";
?>
">
<?php
echo "$homepage";
?>

      Subscribe in a reader

calendarw.phps


<?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");

      Subscribe in a reader

jscriptcheck2.phps

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

      Subscribe in a reader

populate5.phps


<?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

      Subscribe in a reader

populate4.phps

<?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>
<?
}
?>

      Subscribe in a reader

populate3-5.phps


<?php
if ($_POST['submit'] && $_POST['colors']){
$cols = implode($_POST['colors'], ",");

$vals=explode(",",$cols);
?>

What color(s) do you like?

>Yellow

Orange

      Subscribe in a reader
Syndicate content