Forums / WEB Development
Lavalair Cpanel Menu
Started on the old forum in April 2008 · view the original in the archive · old links redirect here
23 replies · 2,058 views · started 18 years ago · 1 min read
TL;DR · summary of 23 replies
rukiya provided a corrected code example for the dropdown menu that should work across different devices. The issue seems to be resolved with the use of the correct $action variable from $_GET["action"] instead of using hardcoded variables like $vopt or $action. The thread concluded by suggesting replacing $action in the original code with the appropriate GET variable.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
Sort replies:
Oldest
Top voted
Newest
HY
am tryin to put my cpane into drop down menu but everytime i code a drop down menu it gives me problem External image (may be gone)
i think i need some help
i code the drop down menu in my cpanel, it shows on the pc when i use opera but gives errors on my phone. can some1 help me
echo "Cpanel Tools:
<select name=\"vopt\">";
echo "<option value=\"rwidc\">HT Portal ID card</option>";
echo "<option value=\"myclub\">My Clubs</option>";
echo "<option value=\"search\">Search</option>";
echo "</select>
";
echo "<anchor> [GO]<go href=\"index.php\" method=\"get\">";
echo "<postfield name=\"action\" value=\"$(vopt)\"/>";
echo "<postfield name=\"sid\" value=\"$sid\"/>";
echo "</go></anchor>
";
MC
mcKeny
Developer · 130 posts
18 years ago
#2
remove the
from the anchor.... beside you could of put the variable action and sid WHERE you have index.php eg index.php?action=vopt&sid=$sid
. ....
SI
SiLeNce
Developer · 138 posts
18 years ago
#3
echo "Cpanel Tools:
<select name="vopt">";
echo "<option value="rwidc">HT Portal ID card</option>";
echo "<option value="myclub">My Clubs</option>";
echo "<option value="search">Search</option>";
echo "</select>
";
echo "<anchor> [GO]<go href="index.php" method="get">";
echo "<postfield name="action" value="$(vopt)"/>";
echo "<postfield name="sid" value="$sid"/>";
echo "</go></anchor>
";
try use this ~
echo "Cpanel Tools:";
echo "
";
echo "<select name="vopt" value="">";
echo "<option value="rwidc">HT Portal ID card</option>";
echo "<option value="myclub">My Clubs</option>";
echo "<option value="search">Search</option>";
echo "</select>";
echo "
";
echo "<anchor> [GO]<go href="index.php" method="get">";
echo "<postfield name="action" value="$(vopt)"/>";
echo "<postfield name="sid" value="$sid"/>";
echo "</go></anchor>";
echo "
";
wrong
HY
RU
am tryin to put my cpane into drop down menu but everytime i code a drop down menu it gives me problem External image (may be gone)
i think i need some help
i code the drop down menu in my cpanel, it shows on the pc when i use opera but gives errors on my phone. can some1 help me
echo "Cpanel Tools:
<select name=\"vopt\">";
echo "<option value=\"rwidc\">HT Portal ID card</option>";
echo "<option value=\"myclub\">My Clubs</option>";
echo "<option value=\"search\">Search</option>";
echo "</select>
";
echo "<anchor> [GO]<go href=\"index.php\" method=\"get\">";
echo "<postfield name=\"action\" value=\"$(vopt)\"/>";
echo "<postfield name=\"sid\" value=\"$sid\"/>";
echo "</go></anchor>
";
copy n replace this code
its working for me both opera and nokia 6030
wrong
GU
correction value=""/> close all value fields with /
wrong
GU
lol@ mckeny the line break has nothing to do with it, if u notice it is outside of both select and anchor tag
RU
correction value=""/> close all value fields with /
what does it mean?
GU
RU
rukiya it means that he didnt close the value field, the way it is works fine on pc however m mobile u would normally get an error i.e request fail depending on the type phone u are using another example External image (may be gone) notice the alt attribute
MC
mcKeny
Developer · 130 posts
18 years ago
#10
hmmm yeah i figure that general...secondly you only use the /> end tag to close a empty element
or <postfield name="mc" value="keny"/>
its not not valid for this <option value="mc">keny</option> the /> tag isn't require for that...get what am saying?
RU
generalX created a new tag <option/>.............<option/> or <postfield/>........</postfield>.We all should use it,ok?
GU
MC
mcKeny so what youre sayn is all tags that already have a closing a backslash shouldnt b considered? even the anchor tag mention above?
GU
rukiya i dnt quite understand what youre saying
RU
rukiya i dnt quite understand what youre saying
go and learn wml before posting wrong
GU
go and learn wml before posting wrong
LOL funny try understanding b4 u post bullshit
GU
Try it now hypetype
echo "Cpanel Tools:
<select name=\"vopt\">";
echo "<option value=\"rwidc\"/>HT Portal ID card</option>";
echo "<option value=\"myclub\"/>My Clubs</option>";
echo "<option value=\"search\"/>Search</option>";
echo "</select>
";
echo "<anchor> [GO]<go href=\"index.php\" method=\"get\">";
echo "<postfield name=\"action\" value=\"$(vopt)\"/>";
echo "<postfield name=\"sid\" value=\"$sid\"/>";
echo "</go></anchor>
";
wrong
SP
lol please dont really post BULLSHIT i don't want a dirty pc lol just joking well bout the wml drop down there are many scripts out there that you can find examples in right?
RU
Try it now hypetype
echo "Cpanel Tools:
<select name=\"vopt\">";
echo "<option value=\"rwidc\"/>HT Portal ID card</option>";
echo "<option value=\"myclub\"/>My Clubs</option>";
echo "<option value=\"search\"/>Search</option>";
echo "</select>
";
echo "<anchor> [GO]<go href=\"index.php\" method=\"get\">";
echo "<postfield name=\"action\" value=\"$(vopt)\"/>";
echo "<postfield name=\"sid\" value=\"$sid\"/>";
echo "</go></anchor>
";
XML parsing failed: syntax error (Line: 5, Character: 1156)
Reparse document as HTML
Error:mismatched end-tag
Specification:[url]http://www.w3.org/TR/REC-xml/[/url]
2: <wml>
3:
4:
5: <card id="main" title="Control Panel"><p align="center">[img]images/cpanel.gif[/img]
[b]Control Panel[/b]</p>
[size="1"][url="inbox.php?action=main&sid=318bc233b7430f8a13c1aa586b131112"]»inbox(1/1)[/url]
[url="index.php?action=rwidc&sid=318bc233b7430f8a13c1aa586b131112"]»lavalair ID card.[/url]
[url="riputation.php?action=ricon&sid=318bc233b7430f8a13c1aa586b131112"]»Riputation Icon[/url]
[url="riputation.php?action=chrimsg&sid=318bc233b7430f8a13c1aa586b131112"]»Riputation Message[/url]
[url="index.php?action=myclub&sid=318bc233b7430f8a13c1aa586b131112"]»My Clubs[/url]
[url="index.php?action=viewuser&sid=318bc233b7430f8a13c1aa586b131112&who=3"]»Profile[/url]
[url="index.php?action=uset&sid=318bc233b7430f8a13c1aa586b131112"]»Settings[/url]
[url="index.php?action=uxset&sid=318bc233b7430f8a13c1aa586b131112"]»Extended Settings[/url]
[url="index.php?action=pws&sid=318bc233b7430f8a13c1aa586b131112"]»Personal Wap site[/url]
Cpanel Tools:
<select name="vopt"><option value="rwidc"/>HT Portal ID card</option><option value="myclub"/>My Clubs</option><option value="search"/>Search</option></select>
<anchor> [GO]<go href="index.php" method="get"><postfield name="action" value="$(vopt)"/><postfield name="sid" value="318bc233b7430f8a13c1aa586b131112"/></go></anchor>
Cpanel Tools:
<select name="vopt" value="rwidc"><option value="rwidc">bdfun ID card</option><option value="myclub">My Clubs</option><option value="search">Search</option></select><anchor> [GO]<go href="index.php" method="get"><postfield name="action" value="$(vopt)"/><postfield name="sid" value="318bc233b7430f8a13c1aa586b131112"/></go></anchor>
[url="lists.php?action=vault&sid=318bc233b7430f8a13c1aa586b131112&who=3"]»My Vault(0)[/url]
[url="lists.php?action=ignl&sid=318bc233b7430f8a13c1aa586b131112"]»Ignore List(0)[/url]
[url="lists.php?action=gbook&sid=318bc233b7430f8a13c1aa586b131112&who=3"]»Guestbook(0)[/url]
[url="index.php?action=poll&sid=318bc233b7430f8a13c1aa586b131112"]»My Poll[/url]
[url="lists.php?action=blogs&sid=318bc233b7430f8a13c1aa586b131112&who=3"]»Blogs(0)[/url]
[url="lists.php?action=chmood&sid=318bc233b7430f8a13c1aa586b131112"]»Chatmood[/url]
[url="status.php?action=status&sid=318bc233b7430f8a13c1aa586b131112"]»Status[/url]
[url="lists.php?action=smilies&sid=318bc233b7430f8a13c1aa586b131112"]»Smilies[/url]
[url="lists.php?action=avatars&sid=318bc233b7430f8a13c1aa586b131112"]»Avatars[/url]
[url="lists.php?action=ecards&sid=318bc233b7430f8a13c1aa586b131112"]»E-Cards[/url]
[url="lists.php?action=bbcode&sid=318bc233b7430f8a13c1aa586b131112"]»BBCode[/url]
[/size]</p><p align="center">[url="index.php?action=main&sid=318bc233b7430f8a13c1aa586b131112"][img]images/home.gif[/img]Home[/url]</p></card>
6: </wml>
7:
look this the result of using your own made imaginary codes
now listen n learn tags to use.
There are a few tags that do not follow the mold above. In a way, they still have the 3 parts (opening/closing and content). These tags however do not require a formal </closingtag> but rather a modified version. The reason being that these tags do not really require any content. Rather some of them just need a source URL and this is enough information for the web browser to display the tag properly (image tags). Let's take a look at a line break tag.
[img]../mypic.jpg[/img] -- Image Tag
-- Line Break Tag
<input type="text" size="12" /> -- Input Field
you canT use
echo "<option value="myclub"/ >My Clubs</option>";
echo "<option value="search"/ >Search</option>";
SP
Thank you chatabox...
He posted this in shoutbox comes from w3schools
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="Selectable List">
<select>
<option value="htm">HTML Tutorial</option>
<option value="xml">XML Tutorial</option>
<option value="wap">WAP Tutorial</option>
</select>
</p>
</card>
</wml>
wrong
CH
here is and example from w3schools
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="Selectable List">
<select>
<option value="htm">HTML Tutorial</option>
<option value="xml">XML Tutorial</option>
<option value="wap">WAP Tutorial</option>
</select>
</p>
</card>
</wml>
wrong