How does one get the error message when trying to save data to the
database?
This is the edit form. When I try to save it comes back to the form but
there are no error message on the page.
<?php echo $html->formTag('/admin/edituser')?>
<?php echo $html->hidden('user/id'); ?>
<p>First Name: <?php echo $html->input('User/firstname',
array('size' => '15'))?>
<?php echo $html->tagErrorMsg('User/firstname', 'First Name is
required.') ?></p>
<p>Last Name: <?php echo $html->input('User/lastname', array('size'
=> '15'))?>
<?php echo $html->tagErrorMsg('User/lastname', 'Lastt Name is
required.') ?></p>
<p>Phone: <?php echo $html->input('User/phone', array('size' =>
'15'))?>
<?php echo $html->tagErrorMsg('User/phone', 'Phone is
required.') ?></p>
<p>Email: <?php echo $html->input('User/email', array('email' =>
'50'))?>
<?php echo $html->tagErrorMsg('User/email', 'Email is
required.') ?></p>
<p></p>
<p>Address1: <?php echo $html->input('User/Address1', array('size'
=> '50'))?>
<?php echo $html->tagErrorMsg('User/Address1', 'Address1 is
required.') ?></p>
<p>Address2: <?php echo $html->input('User/Address2', array('size'
=> '50'))?></p>
<p>City: <?php echo $html->input('User/City', array('size' =>
'30'))?>
<?php echo $html->tagErrorMsg('User/City', 'City is required.')
?></p>
<p>StateProvince: <?php echo $html->input('User/StateProvince',
array('size' => '30'))?>
<?php echo $html->tagErrorMsg('User/StateProvince',
'StateProvince is required.') ?></p>
<p>Country: <?php echo $html->input('User/Country', array('size' =>
'30'))?>
<?php echo $html->tagErrorMsg('User/Country', 'Country is
required.') ?></p>
<p><?php echo $html->submit('Save') ?> </p>
</form>
any help us appreciated.
Ryan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---