JayC
Well-Known Member
I need it to submit to a form
<select id="choose">
<option selected="selected">Choose Image</option>
<option data-image="
<option data-image="
<option data-image="
</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="
<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
<select id="choose">
<option selected="selected">Choose Image</option>
<option data-image="
You must be registered for see links
"> Image One </option><option data-image="
You must be registered for see links
"> Image Two </option><option data-image="
You must be registered for see links
"> 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="
You must be registered for see links
"></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
You must be registered for see links
I need just ES079