Jump to content

Keeping values in form inputs after validation.


horseatingweeds

Recommended Posts

How do you put posted values back into form inputs if validation fails. I've tried this:

 

<input type='text' name='title' size='30' maxlength='70' value='<?php echo $_SERVER['title']; ?>' /><br />

 

This causes '<br />' to appear in the input box though. I have no idea why.

 

I figure this is an easy question. I'm not the only one who doesn't want their users to have to fill in a whole new for because of one mistake and not be able to see the mistake.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.