Handling errors on php contact form
- by topSearchDesign
The below code is working great for handling errors for text fields in my contact form, but how do I get this same method to work for dropdown select option boxes and textareas?
<input type="text" name="name" value="<?php if($errors){echo $name;} ?>" id="name" size="30" />
For example:
<textarea name="message" value="<?php if($errors){echo $message;} ?>" id="message" rows="10" cols="40"></textarea>
does not work.