Anyone know how I can pass two values when submitting an HTML form...
My edited code is
PHP Code:
print "<form method=\"get\" action=\"$PHP_SELF\">
<input class=\"box\" name=\"address\" size=\"20\" value=\"$address\">";
if (count($groups) > 1) print "<option value=\"modify\">".$CCMAIL_LANG['modify']."</option>";
print "</select><input type=\"submit\" value=\"".$CCMAIL_LANG['go']."\" class=\"button\">";
whilst the original is
PHP Code:
print "<form method=\"get\" action=\"$PHP_SELF\"><b>" . $CCMAIL_LANG['insert_addr'] ."</b>
<font color=\"red\"><b>$error_message</b></font><br><br>
<input name=\"address\" size=\"20\" value=\"$address\" class=\"tbox_max\"><select name=\"action\" class=\"tbox\">
<option value=\"subscribe\" selected>".$CCMAIL_LANG['subscribe']."</option>
<option value=\"unsubscribe\">".$CCMAIL_LANG['unsubscribe']."</option>";
if (count($groups) > 1) print "<option value=\"modify\">".$CCMAIL_LANG['modify']."</option>";
print "</select><input type=\"submit\" value=\"".$CCMAIL_LANG['go']."\" class=\"button\"><br><br>";
basically I've just removed the drop down, with options 'Subscribe' and 'Unsubscribe'... I just want the user to be forced to subscribe if they enter their details, how can I pass the value 'subscribe' in my edited form?
Also, any idea how to clear the box of its contents when it is selected? Is this a java snippet?