Hello all take my good wishes. I want to make the text clear function in chat and PM input box for lavalair. By pressing "Clear Text" button users can clear their old texts instantly before writing new. I am just searching for this code. If anyone is expert on it please share with us here.
Clear Text Code for WML
Collapse
X
-
I tried to use the following code but result is 0!!!
I would be grateful if anyone could find out the problem. Thanks.
Code:<? header("Content-type: text/vnd.wap.wml"); header("Cache-Control: no-store, no-cache, must-revalidate"); echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>"; echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; echo "<wml>"; echo "<head>"; echo "<meta forua=\"true\" http-equiv=\"Cache-Control\" content=\"max-age=0\"/>"; echo "</head>"; $action=$_GET["action"]; $id=$_GET["id"]; $sid = $_GET["sid"]; $rid=$_GET["rid"]; $rpw=$_GET["rpw"]; $needto = $_GET["needto"]; if($needto=="clear") { echo "<onevent type=\"onenterforward\">"; echo "<refresh><setvar name=\"message\" value=\"\"/>"; echo "</refresh></onevent>"; } if ($action=="main") { echo "<card id=\"main\" title=\"HelloWorld\">"; echo "<p align=\"left\"><input name=\"message\" type=\"text\" size=\"20\" value=\"\" maxlength=\"125\"/><br/>"; echo "<a href=\"chat.php?needto=clearamp;sid=$sid&rid=$rid&rpw=$rpw\">ClearText</a> | "; echo "<small><anchor>Say"; echo "<go href=\"chat.php?sid=$sid&rid=$rid&rpw=$rpw\" method=\"post\">"; echo "<postfield name=\"message\" value=\"$(message)\"/>"; echo "</go></anchor><br/></p></card></wml>"; exit(); } ?>
Wait...
sigpic
-
Originally posted by anderson View PostHello all take my good wishes. I want to make the text clear function in chat and PM input box for lavalair. By pressing "Clear Text" button users can clear their old texts instantly before writing new. I am just searching for this code. If anyone is expert on it please share with us here.
Comment
-
Originally posted by anderson View Postthis is about input box's text clear system, cleardata is different.PHP Code:$ref = rand(0,100000);
echo "<p>Message:<input name=\"message".$ref."\" type=\"text\" value=\"\" maxlength=\"255\"/><br/>";
echo "<small><anchor>«Say";
echo "<go href=\"chat.php?sid=$sid&rid=$rid&rpw=$rpw&ref=".$ref."\" method=\"post\">";
echo "<postfield name=\"message\" value=\"$(message".$ref.")\"/>";
echo "</go></anchor></small><br/>";
Comment
-
Originally posted by anderson View PostHello all take my good wishes. I want to make the text clear function in chat and PM input box for lavalair. By pressing "Clear Text" button users can clear their old texts instantly before writing new. I am just searching for this code. If anyone is expert on it please share with us here.
im not sure if i understand this correct... so let me ask you..
you wont that text input field to be clear, where users write their msgs for chat?
you actually dont need any ''Clear Text'' button...
add this in chat.php
PHP Code:else if ($action=="say")
{
echo "<card id=\"say\" title=\"$chroom\">";
print '<onevent type="onenterforward">';
print '<refresh>';
print '<setvar name="message" value=""/>';
print '</refresh>';
print '</onevent>';
.......................................
......................................
and yout text input field will be always auto cleared:cool:It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
it's not just what code you add... it's also important where you add it ;)It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
Originally posted by metulj View Postit's not just what code you add... it's also important where you add it ;)Originally posted by metulj View Postim not sure if i understand this correct... so let me ask you..
you wont that text input field to be clear, where users write their msgs for chat?
you actually dont need any ''Clear Text'' button...
add this in chat.php
PHP Code:else if ($action=="say")
{
echo "<card id=\"say\" title=\"$chroom\">";
print '<onevent type="onenterforward">';
print '<refresh>';
print '<setvar name="message" value=""/>';
print '</refresh>';
print '</onevent>';
.......................................
......................................
and yout text input field will be always auto cleared:cool:Wait...
sigpic
Comment
-
Originally posted by arman View Postya,bro.i also need clear text code for inbox,plz help
so why dont you try to use it
before you post what you need ?It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
Comment