CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 mail text from label-field

Print topic Send  topic

Author Message
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
View profile  Send private message
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

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.