Convert To Full Xhtml

Started on the old forum in November 2007 · view the original in the archive · old links redirect here

7 replies · 505 views · started 19 years ago · 1 min read

2 participants
Guest #1
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&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&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='".($nick)."', user='".($uid)."', songtitle='".($songtitle)."', bandname='".$bandname."'");
      
      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&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

GumSlone Administrator Principal · 1,690 posts #2
else if($action=="mp3")
{
addonline(getuid_sid($sid),"Requesting a Mp3 :P","index.php?action=$action");
header('Content-Type: application/xhtml+xml; charset=iso-8859-1');
echo '<?xml version="1.0"?>';
?>
<!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 '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
echo '<div>';
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 '<div>';
echo '</form>';
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
      echo '</body>';
      echo '</html>';

}
else if($action=="send")
{
header('Content-Type: application/xhtml+xml; charset=iso-8859-1');
echo '<?xml version="1.0"?>';
?>
<!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 '</head>';
   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='".($nick)."', user='".($uid)."', songtitle='".($songtitle)."', bandname='".$bandname."'");
      
      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&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
      echo "</p>";
      echo '</body>';
      echo '</html>';

}

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

Guest #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:External image (may be gone) in /home/loony/public_html/web/index.php on line 1916

Guest #4

else if($action=="mp3") { addonline(getuid_sid($sid),"Requesting a Mp3 External image (may be gone)","index.php?action=$action");

echo "<card id="main" title="Hookupwap">"; echo " "; echo "<img src="images/logo.gif" alt="*"/> "; echo "welcome to the mp3 Request page, enjoy External image (may be gone) "; echo " ";

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 "

";

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

}

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

addonline(getuid_sid($sid),"Mp3 Request Page",""); echo "<card id="main" title="hookupwap">"; echo " "; $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='".($nick)."', user='".($uid)."', songtitle='".($songtitle)."', bandname='".$bandname."'");
  
  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&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>"; echo " "; 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

Guest #5

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

WhiteWarrior Principal · 1,419 posts #6

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

remove the

header('Content-Type: application/xhtml+xml; charset=iso-8859-1');
echo '<?xml version="1.0"?>';
?>
<!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

Guest #7

remove the

header('Content-Type: application/xhtml+xml; charset=iso-8859-1');
echo '<?xml version="1.0"?>';
?>
<!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

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

WhiteWarrior Principal · 1,419 posts #8
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 '<form action="index.php?" method="post">';
 echo '<div>';
 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 '<div>';
 echo '</form>';
 echo "<p align=\"center\">";
 echo "<a href=\"index.php?action=main&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='".($nick)."', user='".($uid)."', songtitle='".($songtitle)."', bandname='".$bandname."'");
       
       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&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
 echo "Home</a>";
       echo "</p>";
       echo '</body>';
       echo '</html>';
 
 }

that should work fine

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