CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 ___Clearing only 1 text field on a form

Print topic Send  topic

Author Message
bigtoe

Posts: 115
Posted: 08/29/2004, 4:40 AM


On this form page there are 24 text fields.
Each field is allowed a maximum of 80 characters.
Each field has some default text that is displayed
when the page loads.

The user can accept the default text in each
field or edit it.

But under some conditions the default text does
not apply and the user has to clear the respective
field by backspacing thru the field.
And this is time consuming because there
are so many text fields.

I would like to put a "Clear" button next to each
of these 24 text fields.
When the user clicks on the "Clear" button, only
the respective field is cleared of any text
(default or otherwise).

So I have 2 questions:

1. What would be the PHP code for clearing a text field?

2. Will this code cause a page reload?
I want to avoid a page reload. I don't want anything
else on the page to be impacted.

View profile  Send private message

Add new topic Subscribe to topic   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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