Jump to content

Return PHP error inside of a HTML form?


unsider

Recommended Posts

How can this be achieved? With the following code:

 

<input type="text" name="username" maxlength="30" 
value="<? echo $input->setValue("username"); ?>"><? echo $input->setError("username"); ?>

 

The setValue is input, and if an error is caught during processing it is returned through setError, well right now the error is being returned in plain text, I need it to be displayed inside of the HTML form field.

 

Thanks. It's really important I figure this out, but I can't find anything on google.

Link to comment
https://forums.phpfreaks.com/topic/115058-return-php-error-inside-of-a-html-form/
Share on other sites

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.