Correct WML

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

  • thanatos
    replied
    Ehh! u did not use
    Code:
    echo "</p>";
    remember ur coding PHP LoL..

    Leave a comment:


  • bOrN2pwn
    replied
    Ok so I know what you meant by <p> If you open 1 you have to close it.... Did that now I got this

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/bakgatm/public_html/wap/ownrproc.php on line 164

    and on line 164 there is this

    if($who=="online")

    Leave a comment:


  • thanatos
    replied
    U stil not did what i have told u. be very careful wid ur TAGs. do not use
    Code:
    <p><p></p></p>
    but ths
    Code:
    <p></p><p></p>
    look closely on da script u'l see it

    Leave a comment:


  • bOrN2pwn
    replied
    This is the error im getting

    1: <?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"><wml>
    2: <card id="main" title="Owner Tools"><p align="center"></wml>

    Leave a comment:


  • thanatos
    replied
    btw w3schools has a very good tut on WML u should read it to gain further knwledge

    Leave a comment:


  • thanatos
    replied
    try to use
    Code:
    $res = Insert query blah blah.. if($res){ PM was sent }else{ DB err }
    and u use $pms[0] to get userid of online member

    Leave a comment:


  • bOrN2pwn
    replied
    PHP Code:
    ////////////////////////////pm2all///////////////////////
    else if($action=="prvtall2")
    
    {
      echo "<card id=\"main\" title=\"Owner Tools\">";
      echo "<p align=\"center\">";
    echo "Owner Control Panel";
    
    $who = mysql_real_escape_string( $_REQUEST["who"] );
    $pmtou1 = mysql_real_escape_string( $_REQUEST["pmtou1"] );
    $byuid = getuid_sid($sid);
    
    
    
    $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=\"../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>";
    
    } 
    
    It dosnt show nothing just the headers why... why .... why

    Leave a comment:


  • bOrN2pwn
    replied
    Ok now I have a big problem...... It's all fixed and no more errors but its not submitting the message. What gives.....

    Leave a comment:


  • bOrN2pwn
    replied
    Problem solved m8 my problem was </select> how stupid of me

    Leave a comment:


  • thanatos
    replied
    yeah ur driving me nuts too LOL..

    Leave a comment:


  • thanatos
    replied
    <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, 09:05.

    Leave a comment:


  • bOrN2pwn
    replied
    Stupid me I never added the WORD Send LMFAO

    Leave a comment:


  • bOrN2pwn
    replied
    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>";
      
    
    } 
    

    Leave a comment:


  • thanatos
    replied
    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>

    Leave a comment:


  • bOrN2pwn
    replied
    Thats wht Im trying to do but thanks

    Leave a comment:

Working...
X