I have an object in ColdFusion that post message to twitter. It works well when
I write my message in â â like line below.
<cfset twitterObj.postToTwitter "My Message" />
But I need to have a textbox, and type my message in textbox. Iâm not sure
how can get my textbox value here instead of this message,
every think I tried give me an error. Can anybody help?
This is my code.
<BODY>
<form action="Form.cfm" method="post">
<input type="text" name="twittMessage">
<input type="Submit" name="SubmitForm" value="Submit to Twitter">
<cfif IsDefined("Form.twittMessage")>
<br>
<cfoutput>Your message postet to twitter</cfoutput>
</cfif>
</form>
<!--- call the init() method --->
<cfset twitterObj = createObject('component', 'twitterCFC').init
('username','password') />
<!--- Post to twitter --->
********************************************************************
//here is problem - How I can get the value of textbox here instead of ("My
message to poet is here")
for example I thought it's Form.twittMessage but it doesnât work.
*********************************************************************
<cfset twitterObj.postToTwitter ("My message to poet is here")/>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323287
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4