Welcome Guest, Not a member yet? Register   Sign In
validation error
#1

[eluser]razerone[/eluser]
I have got a validation error.

I have got my validation working but instead of putting this <?php echo validation_errors(''); ?>

at top where it would show all errors

I would like to be able to just go like this

Code:
<form role="form" method="post" acti>
<div class="form-group">
&lt;input type="text" class="form-control" placeholder="Your Name" name="name"&gt;
&lt;?php echo validation_errors('name'); ?&gt;
</div>
<div class="form-group">
&lt;input type="text" class="form-control" placeholder="Your Email" name="email"&gt;
&lt;?php echo validation_errors('email'); ?&gt;
</div>
<div class="form-group">
&lt;input type="text" class="form-control" placeholder="Your Website Address" name="website"&gt;
&lt;?php echo validation_errors('website'); ?&gt;
</div>
<div class="form-group">
&lt;input type="text" class="form-control" placeholder="Your Subject" name="subject"&gt;
&lt;?php echo validation_errors('subject'); ?&gt;
</div>
<div class="form-group">
&lt;textarea class="form-control" rows="10" placeholder="Please Enter Your Message Min Text 15" name="message"&gt;&lt;/textarea>
&lt;?php echo validation_errors('message'); ?&gt;
</div>
<br>
<hr>
<div class="form-group">
<button type="reset" class="btn btn-danger">Clear Form</button>
<button type="submit" class="btn btn-success">Send Message</button>
</div>
&lt;/form&gt;

currently when press send four lines of error show up

http://www.development2.carrarawebsiteso.../contactus


Messages In This Thread
validation error - by El Forum - 10-30-2013, 10:45 PM
validation error - by El Forum - 10-31-2013, 03:04 AM
validation error - by El Forum - 10-31-2013, 03:11 AM
validation error - by El Forum - 10-31-2013, 04:11 AM
validation error - by El Forum - 10-31-2013, 04:32 AM
validation error - by El Forum - 10-31-2013, 04:34 AM
validation error - by El Forum - 10-31-2013, 04:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB