field data into string

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Location: USA
Contact:

field data into string

Post by reelstuff » Fri Aug 31, 2007 4:39 pm

Hello everyone, I have two fields, I want to query to a UrL
they are named,
preceipt and pemail

When I replaced,"preceipt" with the actual value, entered into the field, preceipt, just to test if the URL would validate the data the URL returned true, which is what I am after.

What I am trying to figure out is how to get the values entered into each field into the string and url posted, obviously the code I have below is not correct.

Thanks for any suggestions or pointers,

Code: Select all

on mouseUp
put "http://www.myserver.com/myfolder/folder/query.php?" into tUrl
        put "r=" into tString
        put "preceipt" after tString
        put "&e=" after tString
        put "pemail" after tString
        put "&k=" after tString
        put "1ABvuc90ghv34" after tString
        post tString to url tUrl
        if the result is empty then
        put it into field 1
        else
          answer the result
        end if
    end mouseUp

Klaus
Posts: 13865
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Post by Klaus » Fri Aug 31, 2007 6:25 pm

Hi reelstuff,

...
put "r=" into tString
put FIELD "preceipt" after tString
put "&e=" after tString
put FIELD "pemail" after tString
...

Maybe that is what you want?


Regards

Klaus

reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Location: USA
Contact:

Post by reelstuff » Fri Aug 31, 2007 6:34 pm

Yes, thank you, that is perfect, I really appreciate the help.

Post Reply

Return to “Internet”