Question about html forms

They have: 28 posts

Joined: May 2003

Hi, lets say I have an input box for text like the one below.

How can I make a link or button that will modify the value by either concantanating something to the end, or even replacing the value with something else and of course let the user see it too?

I've seen it done before I think sometimes when filling out forms to buy something online, it asks u if you want to use the same address for the billing adress, and you click yes and it will copy all the contents from one input box to another. So i'm assuming there is a way just to slightly modify a value.

Thanks for your time,
Dave

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

javascriptworld.com if you're using JavaScript to control the form. Some applications use server-side technologies. In that case, check out the PHP form articles at evolt.org for ideas.

They have: 28 posts

Joined: May 2003

thanks for the tip...let me check those sites out.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

While I'm remembering urls off the top of my head, I think irt.org has something similar in their articles/tutorials on JavaScript as well.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.