Bcfc

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

    Bcfc

    brum can u convert these two following pages into html for my site m8


    this 1 is add.php

    <?php
    //toddyBOOK (v1) 2006
    include &#39;book.inc.php&#39;;

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

    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
    header("Content-type: text/vnd.wap.wml;");
    echo &#39;<?xml version="1.0" encoding="utf-8"?>&#39;;
    print &#39;<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">&#39;.
    &#39;<wml>
    <head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>&#39;;


    ////////////////ADD A MSG////////////////
    echo "<card id=\"IMMWAP GUESTBOOK\" title=\"$title\"><p align=\"center\">";
    echo "$title
    ";
    echo "add reply
    </p>

    ";
    ?>
    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;si te=$(site)&amp;email=$(email)\">[add]</a>";
    echo "
    ";
    echo "</p></card></wml>";
    ?>



    and this 1 is add2.php


    <?php
    //toddyBOOK (v1) 2006
    include &#39;book.inc.php&#39;;

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

    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
    header("Content-type: text/vnd.wap.wml;");
    echo &#39;<?xml version="1.0" encoding="utf-8"?>&#39;;
    print &#39;<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">&#39;.
    &#39;<wml>
    <head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>&#39;;


    ////////////////INSERT MSG////////////////
    echo "<card id=\"IMMWAP GUESTBOOK\" title=\"$title\"><p align=\"center\">";
    echo "$title
    ";
    $result=mysql_query("select * from toddybookmsgs where msg=&#39;$msg&#39;");
    $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 (&#39;$name&#39;,&#39;$msg&#39;,&#39;$site&#39;,&# 39;$ip&#39;,&#39;$email&#39;,&#39;$dadate&#39;,&#3 9;$datime&#39;)";
    $result = mysql_query($sql);
    echo "
    <a href=\"book.php\">continue....</a>";}
    echo "
    ©IMMORTALWAP.CO.UK";
    echo "</p></card></wml>";
    ?>



    cheers m8

    #2
    Code:
    <?php
    //toddyBOOK (v1) 2006
    include &#39;book.inc.php&#39;;
    
    ////////////////HEADER INFO////////////////
    
    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
    //header(&#39;Content-type: application/vnd.wap.xhtml+xml&#39;); 
    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 &#39;book.inc.php&#39;;
    
    ////////////////HEADER INFO////////////////
    
    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
    //header(&#39;Content-type: application/vnd.wap.xhtml+xml&#39;); 
    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=&#39;$msg&#39;");
    $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 (&#39;$name&#39;,&#39;$msg&#39;,&#39;$site&#39;,&#39;$ip&#39;,&#39;$email&#39;,&#39;$dadate&#39;,&#39;$datime&#39;)";
    $result = mysql_query($sql);
    echo "
    <a href=\"book.php\">continue....</a>";}
    echo "
    ©IMMORTALWAP.CO.UK";
    echo "</p></body></html>";
    ?>

    Comment


      #3
      lol lonny dun it for ya lol cheers m8
      Want something coded email me at sales@webnwaphost.com for a prices.




      Comment


        #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

        Comment


          #5
          whats the page yu getin error on the site
          Want something coded email me at sales@webnwaphost.com for a prices.




          Comment


            #6
            an attempt to flood?!?

            wen av not even put a url lol, and also not a good idea to show ips address to every1 hu visited the site
            Want something coded email me at sales@webnwaphost.com for a prices.




            Comment


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

              Comment


                #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.




                Comment


                  #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[/b]


                  lol wtf pmpl show me u mashed my head lmao

                  Comment


                    #10
                    Code:
                    $result=mysql_query("select * from toddybookmsgs where msg=&#39;$msg&#39;");
                    $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.




                    Comment


                      #11
                      Code:
                      ?>
                      <form action=\"add2.php?name=$(name)&amp;msg=$(say)&amp;site=$(site)&amp;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.




                      Comment


                        #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

                        Comment


                          #13
                          see if you can convert them 2 pages brum m8

                          Comment


                            #14
                            this is add.php

                            Code:
                            <?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&amp;msg=$msg&amp;email=$email&amp;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.




                            Comment


                              #15
                              Code:
                              <?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 (&#39;$name&#39;,&#39;$msg&#39;,&#39;$site&#39;,&#39;$ip&#39;,&#39;$email&#39;,&#39;$dadate&#39;,&#39;$datime&#39;)";
                              $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
                              Want something coded email me at sales@webnwaphost.com for a prices.




                              Comment

                              Working...
                              X