please ..
i have this form
and i want make the first 2 fields required ( title and url )
but i want the user don't leave the form if this 2 fields empty ..
i want the user don't go to the add.php if this fields empty
something to making the color of Required fields red if user leave it empty or something .. like :: please fill the blank fields
so can anyone help me ..
i have this form
Code:
<FORM action="add.php" method="post">
<TABLE width="100%" border=0>
<TBODY>
<TR>
<TD align=center><FONT color=#ff0000>* </FONT>title:<BR><INPUT size=40
name=title><BR></TD>
</TR>
</TBODY>
<TABLE width="100%" border=0>
<TBODY>
<TR>
<TD align=center><FONT color=#ff0000>* </FONT>Url<BR><INPUT size=40
name=url value=http://><BR><TD></TR></TBODY></TABLE>
</TD>
</TR>
<TABLE width="100%" border=0>
<TBODY>
<TR>
<TD align=center>description<BR>
<textarea cols="50" rows="4" name="description"></textarea><BR><TD></TR></TBODY></TABLE>
</TD>
</TBODY></TABLE>
<P style="TEXT-ALIGN: center" align=center><INPUT class=submit type=submit value="add" name=send></TD>
</FORM>
but i want the user don't leave the form if this 2 fields empty ..
i want the user don't go to the add.php if this fields empty
something to making the color of Required fields red if user leave it empty or something .. like :: please fill the blank fields
so can anyone help me ..
Comment