+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 34

Thread: Correct WML

  1. #1
    Senior Member bOrN2pwn is on a distinguished road bOrN2pwn's Avatar
    Join Date
    Mar 2009
    Location
    South Africa
    Posts
    269
    Thanks
    16
    Thanked 54 Times in 23 Posts
    Blog Entries
    1
    Rep Power
    2

    Exclamation Correct WML

    Why dos this keep showing as html I thoufgt I converted it perfectly but it keeps showing error pars failed please help

    PHP Code:
    //////////////////////////PM 2 ALL
    else if($action=="toall")
    {
    addonline(getuid_sid($sid),"Owner Tools","");
      echo 
    "<card id=\"main\" title=\"Owner Tools\">";
      echo 
    "<p align=\"center\">";
      echo 
    "<b>Owner Tools</b>";
      echo 
    "</p>";
      echo 
    "<p>";

    echo 
    "<form action=\"ownrproc.php?action=prvtall2&amp;sid=$sid\" method=\"post\">";
    echo 
    "Message:<input name=\"pmtou1\" maxlength=\"250\"/><br/>";
    echo 
    "Recipient:<select name=\"who\">";
    echo 
    "<option value=\"online\">Online Members Only</option>";

    echo 
    "</select><br/>";
    echo 
    "<input type=\"submit\" value=\"Update\"/>";
    echo 
    "</p></form>";

    echo 
    "<p>";
    echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\">»Main Menu</a>";
    echo 
    "</p></card>";
      


    And this 1 aswel

    PHP Code:
    ////////////////////////////pm2all///////////////////////
    else if($action=="prvtall2")

    {
    $who mysql_real_escape_string$_REQUEST["who"] );
    $pmtou1 mysql_real_escape_string$_REQUEST["pmtou1"] );
    $byuid getuid_sid($sid);

      echo 
    "<card id=\"main\" title=\"Owner Tools\">";
      echo 
    "<p align=\"center\">";
    echo 
    "Owner Control Panel";

    $tm microtime(get_as_float);

    if(
    $who=="online")
    {
    $lastpm mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
    echo 
    "<p>";
    echo 
    "<img src=\"../phpThumb/phpThumb.php?src=../images/check.png\" alt=\"x\"/>";
    echo 
    "The Online Members have been sent This Message<br/>";
    echo 
    "<a href=\"ownercp.php?action=ownercp&amp;sid=$sid\">»Owner Ttools</a>";
    echo 
    "</p>";
    $pms mysql_query("SELECT userid FROM ibwf_online ");
    $tm microtime(get_as_float);
    while(
    $pm=mysql_fetch_array($pms))
    {
    mysql_query("INSERT INTO ibwf_private SET text='Public Anouncment:[br/]".$pmtou1."[br/]<i>This message was sent to all online members</i>', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");
    }
    }
     echo 
    "</p>";
      echo 
    "</card>";
    exit();

    BakGat
    Code:
    class Counter {
    public:
      void Count();
      int  ReadDisplay();
    private:
      int  CurrentCount;
    };
    








    Back up my hard drive? How do I put it in reverse?
    My Community

    WapLive Hosting Cpanel11

  2. #2
    Senior Member thanatos
    Join Date
    Feb 2007
    Posts
    308
    Thanks
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    0

    Default

    The first one, u also need to convert FORMS into wml. second one, u did not close the tag of paragraph :-)

    Ex.
    Code:
    <p></p>
    
    Not
    Code:
    <p><p></p></p>
    
    got it? .cheers.
    Last edited by metulj; 17-01-10 at 12:41.

  3. #3
    Senior Member bOrN2pwn is on a distinguished road bOrN2pwn's Avatar
    Join Date
    Mar 2009
    Location
    South Africa
    Posts
    269
    Thanks
    16
    Thanked 54 Times in 23 Posts
    Blog Entries
    1
    Rep Power
    2

    Default

    Ok so if I cant use forms what kind do I use.... Im doing this in wml as it's faster and works with all phones.... HTML is easy... I really wana make this script brilliant..... So please advice me on were to begin and end....
    What is the tag of paragraph...... And what is a form in WML

    I came up with this still get error

    PHP Code:
    //////////////////////////PM 2 ALL
    else if($action=="toall")
    {
    addonline(getuid_sid($sid),"Owner Tools","");
      echo 
    "<card id=\"main\" title=\"Owner Tools\">";
      echo 
    "<p align=\"center\">";
      echo 
    "<b>Owner Tools</b>";
      echo 
    "</p>";
      echo 
    "<p>";

    echo 
    "<anchor><go href=\"ownrproc.php?action=prvtall2&amp;sid=$sid\" method=\"post\"></anchor>";


    echo 
    "Message:<input type=\"pmtou1\" maxlength=\"250\"/><br/>";
    echo 
    "Recipient:<select name=\"who\">";
    echo 
    "<option value=\"online\">Online Members Only</option>";

    echo 
    "</select><br/>";
    echo 
    "<input type=\"submit\" value=\"Update\"/>";
    echo 
    "</p></form>";

    echo 
    "<p>";
    echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\">ğMain Menu</a>";
    echo 
    "</p></card>";
      


    Last edited by metulj; 17-01-10 at 12:41.
    BakGat
    Code:
    class Counter {
    public:
      void Count();
      int  ReadDisplay();
    private:
      int  CurrentCount;
    };
    








    Back up my hard drive? How do I put it in reverse?
    My Community

    WapLive Hosting Cpanel11

  4. #4
    Senior Member thanatos
    Join Date
    Feb 2007
    Posts
    308
    Thanks
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    0

    Default

    im jst using a mobile phone and i dnt knw the terms of forms in wml but for u to learn, compare and observe very careful the script of forms and go href etc. etc. then u'l have ur answer :-)

  5. #5
    Senior Member bOrN2pwn is on a distinguished road bOrN2pwn's Avatar
    Join Date
    Mar 2009
    Location
    South Africa
    Posts
    269
    Thanks
    16
    Thanked 54 Times in 23 Posts
    Blog Entries
    1
    Rep Power
    2

    Default

    Thats wht Im trying to do but thanks
    BakGat
    Code:
    class Counter {
    public:
      void Count();
      int  ReadDisplay();
    private:
      int  CurrentCount;
    };
    








    Back up my hard drive? How do I put it in reverse?
    My Community

    WapLive Hosting Cpanel11

  6. #6
    Senior Member thanatos
    Join Date
    Feb 2007
    Posts
    308
    Thanks
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    0

    Default

    u still use
    Code:
    </form>
    
    change it to anchor.. and NOTE: be very careful how u close ur TAG. wml is very sensitive. do not use this
    Code:
    </p></anchor>
    
    but this
    Code:
    </anchor></p>
    

  7. #7
    Senior Member bOrN2pwn is on a distinguished road bOrN2pwn's Avatar
    Join Date
    Mar 2009
    Location
    South Africa
    Posts
    269
    Thanks
    16
    Thanked 54 Times in 23 Posts
    Blog Entries
    1
    Rep Power
    2

    Default

    Ok so I did what you say and shows as wml but know im stuck weres the submit button gonae to

    PHP Code:
    //////////////////////////PM 2 ALL
    else if($action=="toall")
    {
    addonline(getuid_sid($sid),"Owner Tools","");
      echo 
    "<card id=\"main\" title=\"Owner Tools\">";
      echo 
    "<p align=\"center\">";
      echo 
    "<b>Owner Tools</b>";
      echo 
    "</p>";
      echo 
    "<p>";




    echo 
    "Message:<input type=\"pmtou1\" maxlength=\"250\"/><br/>";
    echo 
    "Recipient:<select name=\"who\">";
    echo 
    "<option value=\"online\">Online Members Only</option>";
    echo 
    "<anchor><go href=\"ownrproc.php?action=prvtall2&amp;sid=$sid\" method=\"post\">";
    echo 
    "<postfield name=\"submit\" value=\"Update\"/>";
    echo 
    "</go></anchor>";


    echo 
    "<p>";
    echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\">»Main Menu</a>";
    echo 
    "</p></card>";
      


    BakGat
    Code:
    class Counter {
    public:
      void Count();
      int  ReadDisplay();
    private:
      int  CurrentCount;
    };
    








    Back up my hard drive? How do I put it in reverse?
    My Community

    WapLive Hosting Cpanel11

  8. #8
    Senior Member bOrN2pwn is on a distinguished road bOrN2pwn's Avatar
    Join Date
    Mar 2009
    Location
    South Africa
    Posts
    269
    Thanks
    16
    Thanked 54 Times in 23 Posts
    Blog Entries
    1
    Rep Power
    2

    Default

    Stupid me I never added the WORD Send LMFAO
    BakGat
    Code:
    class Counter {
    public:
      void Count();
      int  ReadDisplay();
    private:
      int  CurrentCount;
    };
    








    Back up my hard drive? How do I put it in reverse?
    My Community

    WapLive Hosting Cpanel11

  9. #9
    Senior Member thanatos
    Join Date
    Feb 2007
    Posts
    308
    Thanks
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    0

    Default

    <input blah blah> <select blah blah><anchor> <go href blah blah> <postfield blah blah></anchor> this the proper way to do it. Pls observe and analyze.
    Last edited by thanatos; 16-01-10 at 08:05.

  10. The Following User Says Thank You to thanatos For This Useful Post:

    bOrN2pwn (16-01-10)

  11. #10
    Senior Member thanatos
    Join Date
    Feb 2007
    Posts
    308
    Thanks
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    0

    Default

    yeah ur driving me nuts too LOL..

+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Pls! Check this recode! If correct,
    By arg0s12 in forum Coding Forum
    Replies: 21
    Last Post: 14-12-09, 05:49
  2. Correct my codes please.
    By infested13 in forum Site / Script testing and error fixing
    Replies: 4
    Last Post: 01-04-09, 07:55
  3. How To Set Correct Time ?
    By opticalpigion in forum Site / Script testing and error fixing
    Replies: 4
    Last Post: 14-05-08, 09:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO