learning livecode server

Are you using LiveCode to create server scripts or CGIs?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

learning livecode server

Post by adventuresofgreg » Tue Dec 22, 2015 10:41 pm

Hello: I'm just learning lc server right now, so forgive the elementary question. I'm still trying to understand exactly how this works. So, I have apache running, and I am able to create a .lc file that when viewed in my browser, returns the tutorial "hello world" and the date and time. However, I can't seem to get my script to work with another stack - as follows below. Am I going about this totally wrong? I'm just trying to figure out how to control a stack and retrieve data form it by using CGI inputs.

<html>
<head>
<title>My LiveCode Server Test Page</title>
</head>
<body>
<h1>My LiveCode Server Test Page</h1>
<?lc
put "<p>Hello World! from LiveCode Server</p>"
put "<p>The date is" && the long date && the long time & "</p>"
put the defaultfolder
open stack "TestStack"
send mouseup to button "button"
put "<br>" & field "FieldA"
?>
</body>
</html>

Post Reply

Return to “CGIs and the Server”