CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 PHP displaying form entries for input errors

Print topic Send  topic

Author Message
Nearly Normal Warren
Posted: 10/17/2003, 8:14 AM

I simply want to display a form with the entries the user has made and my error messages.

I can get the data they posted but I can't get it back into the form for them to correct.

Where last_name is the field name in the form HTML and $lname contains the value from $_POST[last_name]...

Ive tried ...
$tpl->set_var("last_name", tohtml($lname));
and I've tried variations of...
$this->last_name->SetValue($lname);
both of these result in the form not being displayed.
Nearly Normal Warren
Posted: 10/17/2003, 9:06 AM

I found the answer .... in the FORM HTML (see value)..

<td><input type="text" name="last_name" value="<?php print $lname ?>" maxlength="25" size="25"> </td>

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.