Convert To Full Xhtml

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

    Convert To Full Xhtml

    Code:
    else if($action=="mp3")
    {
    addonline(getuid_sid($sid),"Requesting a Mp3 :P","index.php?action=$action");
    
    echo "<title>$sitename</title>";
        echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo "</head>";
        echo "<body>";
            echo "<p align=\"center\">";
    echo "Welcome plz fill out below form to order ur mp3
    ";
    echo "</p>";
    
    echo "
    
    ";
    
    
    
         echo "Ur Nick:<input name=\"alias\" maxlength=\"50\"/>
    ";
    
          echo "Band Name:<input name=\"bandname\" maxlength=\"50\"/>
    ";
        echo "Song Title:<input name=\"songtitle\" maxlength=\"255\"/>
    ";
         echo "<anchor>Submit";
        echo "
              
    
             <go href=\"index.php?action=send&amp;sid=$sid\" method=\"post\">
             <postfield name=\"alias\" value=\"$(alias)\"/>
             <postfield name=\"bandname\" value=\"$(bandname)\"/>
             <postfield name=\"songtitle\" value=\"$(songtitle)\"/>
    
             </go>
                ";
                echo "</anchor>";
    
    
    
    echo "
    </p>"; 
    
    
    
    echo "<p align=\"center\">";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    echo "</p>";
    echo "</body>";
    
    }
    
    
    
    
    
    else if($action=="send")
    {
    
    
    
     
      addonline(getuid_sid($sid),"Mp3 Request Page","");
      echo "<title>Request Page</title>";
          echo "<p align=\"center\">";
       $alias = $_POST["alias"];
      $bandname = $_POST["bandname"];
      $songtitle = $_POST["songtitle"];
    $ownid[0]=20;
     
     
     
    
        $mp3rq = "Someone has made an mp3 Request!,the song title is: ".$songtitle." and the band name is: ".$bandname." the user is: ".$alias." Please grant  This request as soon as possible.[br/][small][i]p.s: this is an automated pm[/i][/small]";
        autopm($mp3rq, $ownid[0]);
    
    
    
    
          $res = mysql_query("INSERT INTO mp3rq SET nick=&#39;".($nick)."&#39;, user=&#39;".($uid)."&#39;, songtitle=&#39;".($songtitle)."&#39;, bandname=&#39;".$bandname."&#39;");
          
          if($res)
          {
    
    
    
            echo "<img src=\"images/ok.gif\" alt=\"O\"/>Item added Successfully";
          }else{
            echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error adding an item";
          }
    
          echo "
    
    ";
          echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
          echo "</p>";
          echo "</card>";
    
    }

    its half done but the submit key wont work and i dont do much xhtml coding
    any help would be fabulos

    #2
    Code:
    else if($action=="mp3")
    {
    addonline(getuid_sid($sid),"Requesting a Mp3 :P","index.php?action=$action");
    header(&#39;Content-Type: application/xhtml+xml; charset=iso-8859-1&#39;);
    echo &#39;<?xml version="1.0"?>&#39;;
    ?>
    <!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 http-equiv="cache-control" content="no-cache"/>
    <meta http-equiv="pragma" content="no-cache"/>
    <?
    echo "<title>$sitename</title>";
        echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo "</head>";
        echo "<body>";
            echo "<p align=\"center\">";
    echo "Welcome plz fill out below form to order ur mp3
    ";
    echo "</p>";
    echo &#39;<form action="&#39;.$_SERVER["PHP_SELF"].&#39;" method="post">&#39;;
    echo &#39;<div>&#39;;
    echo "Ur Nick:<input name=\"alias\" maxlength=\"50\"/>
    ";
    echo "Band Name:<input name=\"bandname\" maxlength=\"50\"/>
    ";
    echo "Song Title:<input name=\"songtitle\" maxlength=\"255\"/>
    ";
    echo "<input type=\"hidden\" name=\"action\" value=\"send\"/>";
    echo "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
    echo "<input type=\"submit\" value=\"Submit\"/>";
    echo &#39;<div>&#39;;
    echo &#39;</form>&#39;;
    echo "<p align=\"center\">";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    echo "</p>";
          echo &#39;</body>&#39;;
          echo &#39;</html>&#39;;
    
    }
    else if($action=="send")
    {
    header(&#39;Content-Type: application/xhtml+xml; charset=iso-8859-1&#39;);
    echo &#39;<?xml version="1.0"?>&#39;;
    ?>
    <!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 http-equiv="cache-control" content="no-cache"/>
    <meta http-equiv="pragma" content="no-cache"/>
    <?
    addonline(getuid_sid($sid),"Mp3 Request Page","");
      echo "<title>Request Page</title>";
    echo &#39;</head>&#39;;
       echo "<p align=\"center\">";
       $alias = $_POST["alias"];
      $bandname = $_POST["bandname"];
      $songtitle = $_POST["songtitle"];
    $ownid[0]=20;
    
    
    
    
        $mp3rq = "Someone has made an mp3 Request!,the song title is: ".$songtitle." and the band name is: ".$bandname." the user is: ".$alias." Please grant  This request as soon as possible.[br/][small][i]p.s: this is an automated pm[/i][/small]";
        autopm($mp3rq, $ownid[0]);
    
    
    
    
          $res = mysql_query("INSERT INTO mp3rq SET nick=&#39;".($nick)."&#39;, user=&#39;".($uid)."&#39;, songtitle=&#39;".($songtitle)."&#39;, bandname=&#39;".$bandname."&#39;");
          
          if($res)
          {
    
    
    
            echo "<img src=\"images/ok.gif\" alt=\"O\"/>Item added Successfully";
          }else{
            echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error adding an item";
          }
    
          echo "
    
    ";
          echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
          echo "</p>";
          echo &#39;</body>&#39;;
          echo &#39;</html>&#39;;
    
    }
    Advertise your mobile site for FREE with AdTwirl

    Comment


      #3
      thats great but i get this error
      Warning: Cannot modify header information - headers already sent by (output started at /home/loony/public_html/web/index.php: in /home/loony/public_html/web/index.php on line 1916

      Comment


        #4
        else if($action=="mp3")
        {
        addonline(getuid_sid($sid),"Requesting a Mp3 ","index.php?action=$action");

        echo "<card id=\"main\" title=\"Hookupwap\">";
        echo "<p align=\"center\">";
        echo "<img src=\"images/logo.gif\" alt=\"*\"/>
        ";
        echo "welcome to the mp3 Request page, enjoy
        ";
        echo "</p>";

        echo "

        ";



        echo "Ur Nick:<input name=\"alias\" maxlength=\"50\"/>
        ";

        echo "Band Name:<input name=\"bandname\" maxlength=\"50\"/>
        ";
        echo "Song Title:<input name=\"songtitle\" maxlength=\"255\"/>
        ";
        echo "<anchor>Submit";
        echo "


        <go href=\"index.php?action=send&amp;sid=$sid\" method=\"post\">
        <postfield name=\"alias\" value=\"$(alias)\"/>
        <postfield name=\"bandname\" value=\"$(bandname)\"/>
        <postfield name=\"songtitle\" value=\"$(songtitle)\"/>

        </go>
        ";
        echo "</anchor>";



        echo "
        </p>";



        echo "<p align=\"center\">";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
        echo "Home</a>";
        echo "</p>";
        echo "</card>";

        }





        else if($action=="send")
        {




        addonline(getuid_sid($sid),"Mp3 Request Page","");
        echo "<card id=\"main\" title=\"hookupwap\">";
        echo "<p align=\"center\">";
        $alias = $_POST["alias"];
        $bandname = $_POST["bandname"];
        $songtitle = $_POST["songtitle"];
        $ownid[0]=20;




        $mp3rq = "Someone has made an mp3 Request!,the song title is: ".$songtitle." and the band name is: ".$bandname." the user is: ".$alias." Please grant This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]";
        autopm($mp3rq, $ownid[0]);




        $res = mysql_query("INSERT INTO mp3rq SET nick=&#39;".($nick)."&#39;, user=&#39;".($uid)."&#39;, songtitle=&#39;".($songtitle)."&#39;, bandname=&#39;".$bandname."&#39;");

        if($res)
        {



        echo "<img src=\"images/ok.gif\" alt=\"O\"/>Item added Successfully";
        }else{
        echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error adding an item";
        }

        echo "

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

        }

        thats the wml code for it i think the parts that i dont made the error lol do u think u caould do that for me gum

        Comment


          #5
          when i clikc the sub,it it takes me to the login page lol

          Comment


            #6
            when i clikc the sub,it it takes me to the login page lol[/b]
            remove the
            Code:
            header(&#39;Content-Type: application/xhtml+xml; charset=iso-8859-1&#39;);
            echo &#39;<?xml version="1.0"?>&#39;;
            ?>
            <!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 http-equiv="cache-control" content="no-cache"/>
            <meta http-equiv="pragma" content="no-cache"/>
            <?
            from the coding i seen it twice and it will get rid of your header errors and should work

            Comment


              #7
              remove the
              Code:
              header(&#39;Content-Type: application/xhtml+xml; charset=iso-8859-1&#39;);
              echo &#39;<?xml version="1.0"?>&#39;;
              ?>
              <!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 http-equiv="cache-control" content="no-cache"/>
              <meta http-equiv="pragma" content="no-cache"/>
              <?
              from the coding i seen it twice and it will get rid of your header errors and should work[/b]
              yeah i yook that out the sumbit button doesnt work and its riddle with erors writen by me that why i reposted the wml script to see if it could be done from that by one of use

              Comment


                #8
                Code:
                else if($action=="mp3")
                 {
                 addonline(getuid_sid($sid),"Requesting a Mp3 :P","index.php?action=$action");
                 echo "<title>$sitename</title>";
                     echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
                     echo "<body>";
                 
                         echo "<p align=\"center\">";
                 echo "Welcome plz fill out below form to order ur mp3
                ";
                 echo "</p>";
                 echo &#39;<form action="index.php?" method="post">&#39;;
                 echo &#39;<div>&#39;;
                 echo "Ur Nick:<input name=\"alias\" maxlength=\"50\"/>
                ";
                 echo "Band Name:<input name=\"bandname\" maxlength=\"50\"/>
                ";
                 echo "Song Title:<input name=\"songtitle\" maxlength=\"255\"/>
                ";
                 echo "<input type=\"hidden\" name=\"action\" value=\"send\"/>";
                 echo "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
                 echo "<input type=\"submit\" value=\"Submit\"/>";
                 echo &#39;<div>&#39;;
                 echo &#39;</form>&#39;;
                 echo "<p align=\"center\">";
                 echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                 echo "Home</a>";
                 echo "</p>";
                       echo "</body>";
                       echo "</html>";
                 
                 }
                 else if($action=="send")
                 {
                 addonline(getuid_sid($sid),"Mp3 Request Page","");
                   echo "<title>Request Page</title>";
                    echo "<p align=\"center\">";
                    $alias = $_POST["alias"];
                   $bandname = $_POST["bandname"];
                   $songtitle = $_POST["songtitle"];
                 $ownid[0]=20;
                 
                 
                 
                 
                     $mp3rq = "Someone has made an mp3 Request!,the song title is: ".$songtitle." and the band name is: ".$bandname." the user is: ".$alias." Please grant  This request as soon as possible.[br/][small][i]p.s: this is an automated pm[/i][/small]";
                     autopm($mp3rq, $ownid[0]);
                 
                 
                 
                 
                       $res = mysql_query("INSERT INTO mp3rq SET nick=&#39;".($nick)."&#39;, user=&#39;".($uid)."&#39;, songtitle=&#39;".($songtitle)."&#39;, bandname=&#39;".$bandname."&#39;");
                       
                       if($res)
                       {
                 
                 
                 
                         echo "<img src=\"images/ok.gif\" alt=\"O\"/>Item added Successfully";
                       }else{
                         echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error adding an item";
                       }
                 
                       echo "
                
                ";
                       echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                 echo "Home</a>";
                       echo "</p>";
                       echo &#39;</body>&#39;;
                       echo &#39;</html>&#39;;
                 
                 }
                that should work fine

                Comment

                Working...
                X