michael
Posts: 6
|
Posted: 05/13/2004, 4:34 AM |
|
Hello everybody,
I have a problem with getting texts from label-fields to send in an e-mail.
When I change te field to textbox everything works perfectly, but with label-fields it just doens't send something.
This is the way I get data from the fields to send in the e-mail:
$int1 = $mailform->int1->GetText();
Does anybody know how to make this work with a label-field?
Thanks very much!
Michael
|
|
|
DonB
|
Posted: 05/13/2004, 5:03 AM |
|
Think of Labels as a one-way data transfer and textboxes as a two-way
transfer. Data goes TO the client browser and BACK. But Labels are just
placeholders for inserting data into the HTML, not HTML controls that get
involved the the post-back when your form is submitted. To illustrate this,
look at the HTML source of the page in your browser - textboxes become
<INPUT> elements, labels are just characters in the HTML.
You can put the data into a label AND into a hidden textbox, then you have
the label that the user sees but also the hidden <INPUT> element that can be
used in your code snippet.
--
DonB
http://www.gotodon.com/ccbth
|
|
|
|