Correct WML
Collapse
X
-
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 :-)
-
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&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&sid=$sid\">»Main Menu</a>"; echo "</p></card>"; }Last edited by metulj; 17.01.10, 13:41.
Leave a comment:
-
Correct WML
Why dos this keep showing as html I thoufgt I converted it perfectly but it keeps showing error pars failed please help
And this 1 aswelPHP 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&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&sid=$sid\">»Main Menu</a>"; echo "</p></card>"; }
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&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(); }Tags: None
Leave a comment: