This has all been done with a forum. Here's the forum http://www.eoaa.org/entvent.info/forum/index.php
usename
test
password
12345678
Go to Profile, there you see two new sections "Submit vent" and "Choose vent". Only the first field Top five musicians works for Submit vent, put text in there and then go to "Choose vent", your test is included. When you select field from Choose vent and submit it fires a blank to database.
Here's the code for the menu ..
Code: Select all
include 'ventChoose.php';
<form action="', $scripturl, '?action=profile2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator" enctype="multipart/form-data">
<SELECT NAME=T5a_musicians>
<option value="ID"', ($context['member']['T5a_musicians']['name'] == '1' ? ' selected="selected"' : ''), '>', $mus, '</option>
</SELECT>';Code: Select all
$sql="SELECT ID, musicians FROM xxxx order by musicians";
$result=mysql_query($sql);
$mus="";
while ($row=mysql_fetch_array($result)) {
$ID=$row["id"];
$musicians=$row["musicians"];
$mus.="<OPTION VALUE=\"$id\">".$musicians;
}
?>