Hello everyone.
I am working on a php project and when reporting errors to the user on the page with the form, I explain to him the error and also change the css formatting of the text input field with the error so that the border of the input field colors are changed to red.
It works perfectly but I would like to maintain the smooth rounded edges of the default text input box since when the formatting is applied the input box simply becomes a rectange with 90 degree edges.
Thanks

post the code please..

Heres the code

<input type="text" name="reg_no"  <?php if(isset($_SESSION['err']['reg_no']))
{
echo "value=\"$_SESSION['err']['reg_no']\" style=\"border: 1px solid red;\"";
}
?>
/>

The session variable $_SESSION is only set if validation script reports an error

You are going to have to repeat whatever action makes your rounded corners after the message appears.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.