libURLFormData different url

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
prop
Posts: 3
Joined: Wed Jul 31, 2019 10:37 am

libURLFormData different url

Post by prop » Wed Jul 31, 2019 10:42 am

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
Last edited by prop on Thu Jul 01, 2021 5:47 am, edited 1 time in total.

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

Re: libURLFormData different url

Post by Klaus » Wed Jul 31, 2019 10:54 am

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

prop
Posts: 3
Joined: Wed Jul 31, 2019 10:37 am

Re: libURLFormData different url

Post by prop » Wed Jul 31, 2019 11:33 am

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

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

Re: libURLFormData different url

Post by Klaus » Wed Jul 31, 2019 12:01 pm

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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”