Hello all:

Here's a problem that I've been tackling for a while now and I can't seem to
find the solution. I would like to interact with SprintPCS's module for
sending short text messages to my personal phone. 

Having the form on my site works ok when filled out and submitted  (the
phone numbers below are changed from the original ones):

<form
action="http://www.messaging.sprintpcs.com/sms/check_message_syntax.html"
method="POST">
                <input type="hidden" name="mobilenum"  value="3011111111">
                <input name="callbacknum" size="10" maxlength="10"
type="TEXT" value="3012222222">
                <textarea wrap="VIRTUAL" name="message" cols="21"
rows="5"></textarea>
                <input type="submit">
</form>


However, I would like to submit this via CFHTTP so I can control the output
but SprintPCS system responds that the fields I am passing are undefined.
Here's the code I am using:


<cfhttp
url="http://www.messaging.sprintpcs.com/sms/check_message_syntax.html"
method="POST" useragent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"
resolveurl="yes" timeout="60">
        <cfhttpparam type="FORMFIELD" name="message" value="This is a test!
Let's try if this works. If it does, this would be the message!">  <!--- No
more than 100 characters --->
        <cfhttpparam type="FORMFIELD" name="mobilenum" value="3011111111">
        <cfhttpparam type="FORMFIELD" name="callbacknum" value="3012222222">
        <cfhttpparam type="FORMFIELD" name="Submit" value="">
</cfhttp>


Does anyone have any ideas why the CFHTTP code does not work? Any
help/solutions would be greatly appreciated.

Thanks,
Dimo Michailov
Certified Cold Fusion 4.5 Web Developer
USA-IT, Inc.
[EMAIL PROTECTED]


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to