Page 1 of 1

libURLFormData different url

Posted: Wed Jul 31, 2019 10:42 am
by prop
I tried the livecode tutorial, I was trying to use a different url. Why messages that I input are not stored on the server. This is my code. can you help me? thank you

Code: Select all

on mouseUp pButtonNumber
   set the text of field "mesejSend" to the text  of field "writeMesej"
   local tName, tMesej, tDataToPost
   put "LIVECODE" into tName
   put the text of field "writeMesej" into tMesej
   put libURLFormData("name",tName, "message",tMesej) into tDataToPost
   post tDataToPost to URL "https: / /  b4ap. pps. i o/livecode1"
   set the text of field "writeMesej" to empty
   answer "mesej send"
end mouseUp

Re: libURLFormData different url

Posted: Wed Jul 31, 2019 10:54 am
by Klaus
Hi prop,

welcome to the forum!
A little "Hello" or something would not have hurt in the very first posting!
I tried the livecode tutorial...
What lesson are you talking about?
Why messages that I input are not stored on the server.
Is this a question?
This depends on what the server script (livecode1) does after receiving your POSTed data!?


Best

Klaus

Re: libURLFormData different url

Posted: Wed Jul 31, 2019 11:33 am
by prop
Klaus wrote:
Wed Jul 31, 2019 10:54 am


sorry if my English is bad.
What lesson are you talking about?
I followed this tutorial. [url]https:// livecode. com/lessons/simple-messages/[/url]

Code: Select all

This depends on what the server script (livecode1) does after receiving your POSTed data!?
do you have an example script for backend? as in the example of simple messages tutorial

Re: libURLFormData different url

Posted: Wed Jul 31, 2019 12:01 pm
by Klaus
Hi prop,

Code: Select all

do you have an example script for backend? as in the example of simple messages tutorial
no, I do not have an example, and I also have no idea what exactly LC uses for its server script.

It also depends to what server you want to post, in the lesson there is a special server set up from the LC company, and it uses Livecode Server, which is ususally not installed on every server per default.


Best

Klaus