Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Error Submitting Form
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JayC" data-source="post: 308851" data-attributes="member: 36373"><p>I need it to submit to a form</p><p></p><p></p><p> <select id="choose"></p><p> <option selected="selected">Choose Image</option></p><p> <option data-image="<a href="http://aeon-hotel.net/r63/c_images/groups/POKE1.gif" target="_blank">http://aeon-hotel.net/r63/c_images/groups/POKE1.gif</a>"> Image One </option></p><p> <option data-image="<a href="http://aeon-hotel.net/r63/c_images/groups/ES079.gif" target="_blank">http://aeon-hotel.net/r63/c_images/groups/ES079.gif</a>"> Image Two </option></p><p> <option data-image="<a href="http://aeon-hotel.net/r63/c_images/groups/ES078.gif" target="_blank">http://aeon-hotel.net/r63/c_images/groups/ES078.gif</a>"> Image Three </option></p><p> </select><br /></p><p></p><p>thats the select, but for the form to acknowledge it, it needs to be name=choose but if I turn it to name javascript doesn't function correctly..</p><p> <script type="text/javascript" src="<a href="http://code.jquery.com/jquery-git.js" target="_blank">http://code.jquery.com/jquery-git.js</a>"></script></p><p> <script type='text/javascript'></p><p> $(window).load(function(){</p><p> $('#choose').change(function(){</p><p> var image = $("#choose option:selected").data('image');</p><p> $('#selected').attr("src", image);</p><p> });</p><p> });</p><p> </script></p><p></p><p>if(isset($_POST['Groups']))</p><p> {</p><p> $rid = filter($_POST['room_id']);</p><p> $name = filter($_POST['name']);</p><p> $desc = filter($_POST['desc']);</p><p> $Priv = filter($_POST['priv']);</p><p> $Stat = filter($_POST['stat']);</p><p> $badge = filter($_POST['choose']);</p><p></p><p>Then I need to get just the ending.. so like it sends <a href="http://aeon-hotel.net/r63/c_images/groups/ES079.gif" target="_blank">http://aeon-hotel.net/r63/c_images/groups/ES079.gif</a> I need just ES079</p></blockquote><p></p>
[QUOTE="JayC, post: 308851, member: 36373"] I need it to submit to a form <select id="choose"> <option selected="selected">Choose Image</option> <option data-image="[url]http://aeon-hotel.net/r63/c_images/groups/POKE1.gif[/url]"> Image One </option> <option data-image="[url]http://aeon-hotel.net/r63/c_images/groups/ES079.gif[/url]"> Image Two </option> <option data-image="[url]http://aeon-hotel.net/r63/c_images/groups/ES078.gif[/url]"> Image Three </option> </select><br /> thats the select, but for the form to acknowledge it, it needs to be name=choose but if I turn it to name javascript doesn't function correctly.. <script type="text/javascript" src="[url]http://code.jquery.com/jquery-git.js[/url]"></script> <script type='text/javascript'> $(window).load(function(){ $('#choose').change(function(){ var image = $("#choose option:selected").data('image'); $('#selected').attr("src", image); }); }); </script> if(isset($_POST['Groups'])) { $rid = filter($_POST['room_id']); $name = filter($_POST['name']); $desc = filter($_POST['desc']); $Priv = filter($_POST['priv']); $Stat = filter($_POST['stat']); $badge = filter($_POST['choose']); Then I need to get just the ending.. so like it sends [url]http://aeon-hotel.net/r63/c_images/groups/ES079.gif[/url] I need just ES079 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Error Submitting Form
Top