brum can u convert these two following pages into html for my site m8
this 1 is add.php
<?php //toddyBOOK (v1) 2006 include 'book.inc.php'; ////////////////HEADER INFO//////////////// header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("Content-type: text/vnd.wap.wml;"); echo '<?xml version="1.0" encoding="utf-8"?>';print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">'. '<wml>
<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';////////////////ADD A MSG//////////////// echo "<card id="IMMWAP GUESTBOOK" title="$title"> "; echo "$title "; echo "add reply
"; ?> name:
<input name="name" maxlength="12"/>message:
<input name="say" maxlength="150"/>email:
<input name="email" maxlength="50"/>Site URL (no http://):
<input name="site" maxlength="50"/> <? echo " "; echo "<a title=\"Enter\" href=\"add2.php?name=$(name)&msg=$(say)&site=$(site)&email=$(email)\">[add]</a>"; echo " "; echo " </card></wml>"; ?>and this 1 is add2.php
<?php //toddyBOOK (v1) 2006 include 'book.inc.php'; ////////////////HEADER INFO//////////////// header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("Content-type: text/vnd.wap.wml;"); echo '<?xml version="1.0" encoding="utf-8"?>';print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">'. '<wml>
<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';////////////////INSERT MSG//////////////// echo "<card id="IMMWAP GUESTBOOK" title="$title"> "; echo "$title "; $result=mysql_query("select * from toddybookmsgs where msg='$msg'"); $number_of_rows = mysql_num_rows($result); if ($number_of_rows>0) { $error="1"; echo "an attempt to flood?!?"; }
if ($error==""){
echo "Thanks $name"; $datime=date("H:i"); $ip=$REMOTE_ADDR; $dadate=(date("D, j F Y")); $sql = "INSERT INTO toddybookmsgs (name, msg, site, ip, email, date, time) VALUES ('$name','$msg','$site','$ip','$email','$dadate','$datime')"; $result = mysql_query($sql); echo " <a href="book.php">continue....</a>";} echo " ©IMMORTALWAP.CO.UK"; echo " </card></wml>"; ?>
cheers m8