Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Text Message Properties

$
0
0
Re: Text Message Properties
FoxPro Programming
Re: Text Message Properties
03/16/2012
08:53:00 AM
3GG0J1J6G Show this entire thread in new window
Gratar Image based on email address
From:
To:
Attachments:
None
Bob, you are my hero. Thank you very much for helping me out with this project. If you have PayPal, I'd be happy to forward you a few bucks for your time.

Additionally, I wanted to know if I could add a label to the code. For example, in the name field, I wanted to know if I can "pre-fill" the text box with text such as "Fill in your name here." The user would then erase that text and fill in their name. Hopefully that makes sense? (See www.tumblr.com for an example of this)

Here is the code that I have that *should* work but doesn't. I added the "label for=..." line. Can you tell if I'm missing something?

Response.WriteLn([ <fieldset>]) Response.WriteLn([ <legend>Name</legend>]) Response.WriteLn([ <div class="required">]) Response.WriteLn([ <label for="txtName">Please Enter Your Name</label>]) Response.WriteLn([ <input name="txtName" id="txtName" class="inputTextarea" size="50"></input>]) Response.WriteLn([ <small>Must be 50 characters or less.<br /><div id="charlimitinfo"></div></small>]) Response.WriteLn([ </div>]) Response.WriteLn([ </fieldset>]) <
>



Hi Bo;

Yes, I can see the problem.
I update the code line that saved the record in the table but not the code line in the page

Change this line:

oSendPage.cMessage = Alltrim(Request.Form("txtMessage"))

to This:

oSendPage.cMessage = "Name: " + ALLTRIM(Request.Form("txtName")) + " Phone: " + ALLTRIM(Request.Form("txtPhone")) + " " + Alltrim(Request.Form("txtMessage"))


Bob

West Wind Web Monitor

Viewing all articles
Browse latest Browse all 10393

Trending Articles