CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
how to get the modified value in a textbox

 



datlaravi
Deleted

Dec 1, 2000, 3:14 PM

Post #1 of 3 (305 views)
how to get the modified value in a textbox Can't Post

Hi,
I have a form, which as a textbox in it.

I am populating the textbox with some default value.

If the user modifies the default value, how do i get the modified value.

For example,
Email:
<input type = "text" name = "email" value=
"$contents{email}">

OUTPUT of the above is

Email:ravi@hotmail.com


If the user changes the address in the textbox,
how do i get that changed email address?

$default_address = $contents{email};

I want to get the modified address in a variable so i can pass the modified address
to the next form.

Please help me
Thanks


xeridon
Novice

Dec 1, 2000, 5:13 PM

Post #2 of 3 (305 views)
Re: how to get the modified value in a textbox [In reply to] Can't Post

Not sure if I understand what the problem is, but... When the form is submitted, the value from the text box will be passed through to the script being submitted to.
If you are using CGI.pm, it will come through as param('email') and all you need to do is capture that in a variable.
$var = param('email'). That will give you the modified valued of the text box.
See the perldoc on CGI.pm for more info there.
Hope that helps


datlaravi
Deleted

Dec 4, 2000, 5:09 AM

Post #3 of 3 (305 views)
Re: how to get the modified value in a textbox [In reply to] Can't Post

Is there a way to get the modified value without using CGI.pm. I don't think i can use CGI.pm on my system. Can you help me with the if there is a way with the hidden values.
If i use the hidden value, it am able to get the default value. If the user changes the default value, how will i get that value?

THanks

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives