translate this in xhtml

Started on the old forum in August 2009 · view the original in the archive · old links redirect here

2 replies · 324 views · started 17 years ago · 1 min read

2 participants
honkytonkman Senior · 252 posts #1

i tried to change this from wml to xhtml but it don't works.. someone can help me?

///////////////////////////////////////////Blog Comment
else if($action=="signblogcomment")
{
$who=$_GET["who"];
addonline(getuid_sid($sid),"Signing Users guestbook","");
if(!cansignblogcomment(getuid_sid($sid), $who))
****{
********echo "<card id=\"main\" title=\"$sitename\">";
******echo "<p align=\"center\">";
******echo "You cant Sign this user Blog

";
******echo "<a href=\"index.php?action=main&sid=$sid\">Home</a>";
******echo "© coded by Vishal";
******echo "</p>";
******echo "</card>";
******echo "</wml>";
******exit();
****}
****

****echo "<card id=\"main\" title=\"Sign blog\">";
****echo "<onevent type=\"onenterforward\">";
**echo "<refresh>
********<setvar name=\"msgtxt\" value=\"\"/>
********
** ";
**echo "</refresh></onevent>";

****echo "<p align=\"center\">";
****echo "Text:<input name=\"msgtxt\" maxlength=\"500\"/>
";
****echo "<anchor>Add";
****echo "
******** <go href=\"genproc.php?action=signblogcomment&sid=$sid\" method=\"post\">
******** 
******** <postfield name=\"msgtxt\" value=\"$(msgtxt)\"/>
********<postfield name=\"who\" value=\"$who\"/>
******** </go>
************";
************echo "</anchor>";

******** echo "

<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>";
****echo "Home</a>";
****echo "© coded by Vishal";
****echo "</p>";
****echo "</card>";
}

the italian/international COMMUNITY of friendship http://people2000.netne.net WAP/WEB peoplemailbox@katamail.com

Anshul Senior · 296 posts #2

try this maybe it work for you 🙂

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">
<head>
<meta forua="true" http-equiv="Cache-Control" content="max-age=0"/>
<meta forua="true" http-equiv="Cache-Control" content="must-revalidate"/>
</head>
<?php
else if($action=="signblogcomment")
{
$who=$_GET["who"];
addonline(getuid_sid($sid),"Signing Users guestbook","");
if(!cansignblogcomment(getuid_sid($sid), $who))
{
echo "<head>";
echo "<title>$sitename</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"themes/urcssfile.css\">";
echo "</head>";
echo "<body>";
echo "You cant Sign this user Blog";
echo "<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "© coded by Vishal";
echo '</div>';
echo "</body>\n";
echo "</html>\n";
exit();
}
else
{
echo "<head>";
echo "<title>Sign blog</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"themes/urcssfile.css\">";
echo "</head>";
echo "<body>";
echo "<form action=\"genproc.php?action=signblogcomment&sid=$sid\" method=\"post\">\n";
echo "<div>";
echo "Sign blog<input type=\"text\" name=\"msgtxt\" maxlength=\"500\" value=\"\"/>";
echo "<input type=\"hidden\" name=\"who\" value=\"".$who."\" />\n";
echo "<input type=\"submit\" value=\"Add\" /></div></form>\n<hr/>";
}

echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "© coded by Vishal";
echo '</div>';
echo "</body>\n";
echo "</html>\n";
}

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

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