translate this in xhtml

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    translate this in xhtml

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

    Code:
    ///////////////////////////////////////////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>";
    }
    sigpicthe italian/international COMMUNITY of friendship
    http://people2000.netne.net
    WAP/WEB
    peoplemailbox@katamail.com

    #2
    try this maybe it work for you
    PHP Code:
    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";
    }

    Comment


      #3
      thanks buddy..i did my wrong in the input form ..
      sigpicthe italian/international COMMUNITY of friendship
      http://people2000.netne.net
      WAP/WEB
      peoplemailbox@katamail.com

      Comment

      Working...
      X