Bcfc

Started on the old forum in May 2008 · view the original in the archive · old links redirect here

17 replies · 1,037 views · started 18 years ago · 1 min read

2 participants
immortalempire Developer · 219 posts #1

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)&amp;msg=$(say)&amp;site=$(site)&amp;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

Guest #2
<?php
//toddyBOOK (v1) 2006
include 'book.inc.php';

////////////////HEADER INFO////////////////

header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
//header('Content-type: application/vnd.wap.xhtml+xml'); 
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php

////////////////ADD A MSG////////////////
echo "<head>
<title>$title</title>
</head>
<body>";
echo "add reply
</p>

";
?>
<form action="add2.php" method="get">
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"/>
<input type="submit" value="Add!"></p></form>
<?
echo "</p></body></html>";
?>

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: application/vnd.wap.xhtml+xml'); 
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
////////////////INSERT MSG////////////////
echo "<head>
<title>$title</title>
</head>
<body>";
$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 "</p></body></html>";
?>
immortalempire Developer · 219 posts #4

just put those 2 pages up m8 cheers but there error somewhere as when u add the message and then go to veiw it the username is shown but the message is blank

immortalempire Developer · 219 posts #7

do you know whats wrong brum as it works in the other format

crazybrumi Super moderator Principal · 1,064 posts #8

think yu need an else if instead of if as yur telin it if it this then do this, and if its this do this, yu not telin it to do if its this then its ok otherwise if not do this

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

immortalempire Developer · 219 posts #9

think yu need an else if instead of if as yur telin it if it this then do this, and if its this do this, yu not telin it to do if its this then its ok otherwise if not do this

lol wtf pmpl show me u mashed my head lmao

crazybrumi Super moderator Principal · 1,064 posts #10
$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?!?";
}

else if ($error==""){

echo "Thanks $name";

try that but i thnk it mayb something else 2 secs let me just verify if it could also be that

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

crazybrumi Super moderator Principal · 1,064 posts #11
?>
<form action=\"add2.php?name=$(name)&msg=$(say)&site=$(site)&email=$(email)\" method=\"post\">
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"/>
<input type="submit" value="Add!"></p></form>
<?

you dont want to get it you want to send it this had get not send

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

immortalempire Developer · 219 posts #12

i placed that in m8 but when i checked n typed sumat n clicked ok this came up on next page

an attempt to flood?!? ©IMMORTALWAP.CO.UK

crazybrumi Super moderator Principal · 1,064 posts #14

this is add.php

<?php

include("book.inc.php"); 

header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";

    echo "<head>";

    echo "<title>$stitle</title>";
    echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
    echo "</head>";

    echo "<body>";
    
echo "<p align=\"center\">";
echo "<form action=\"add2.php?name=$name&msg=$msg&email=$email&site=$site\" method=\"post\">";
echo "
Name:
";
echo "<input name=\"name\" maxlength=\"10\"/>";
echo "
Message:
";
echo "<input name=\"msg\" maxlength=\"50\"/>";
echo "
Email:
";
echo "<input name=\"email\" maxlength=\"50\"/>";
echo "
Site Url (Excluding http://)
";
echo "<input name=\"site\" maxlength=\"50\"/>";
echo "
";
echo "<input type=\"submit\" value=\"Send\"/>";
echo "</form>";

echo "</p>";
echo "</body>"; 
echo "</html>"; 
?>

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

crazybrumi Super moderator Principal · 1,064 posts #15
<?php

include("book.inc.php"); 

header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";

    echo "<head>";

    echo "<title>$username@$stitle</title>";
    echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
    echo "</head>";

    echo "<body>";

echo "<p align=\"center\">";

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 "</p>";
echo "</body>"; 
echo "</html>"; 
?>

all workin but givin a database error sayin thats theres no table in there External image (may be gone)

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

Sign in to reply.

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close