The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
My knowledge of HTML escapes me and google was of no help.
How do I make a field on a form required? >.> |
|
#2
|
|||
|
|||
|
Quote:
|
|
#3
|
||||
|
||||
|
Quote:
Maybe vB already has this built in? I am doing this on a vB board. |
|
#4
|
|||
|
|||
|
This will make it show up in a standard error message from vbulletin.
Put it after the submit button action. Code:
if ($formanswer == '')
{
$errormessage="you need to answer this question since it's required";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
exit();
}
|
|
#5
|
||||
|
||||
|
Quote:
|
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
||||
|
||||
|
okay.. so.. I'm more confused now then when I started...
|
|
#8
|
|||
|
|||
|
Javascript Tutorial:
http://www.javascriptkit.com/javatutors/form6.shtml For php it's just checking if a variable is empty. |
|
#9
|
||||
|
||||
|
Quote:
|
![]() |
|
|