I want to make a simple front-end for my weblog-system Zomplog (http://zomplog.zomp.nl), where users can fill out a title and a main text. After pressing submit, the form data should be posted to a php file which inserts the data into the database.
I’m a newbie, so could someone give a simple example of how to send formdata to an online php file using method POST?
Browser: Safari 412, Xcode 2.1
Operating System: Mac OS X (10.4)
I don’t have PHP setup right now, so I can’t try this myself.
property address : "http://zomplog.zomp.nl/somepage.php"
display dialog "Enter title:" default answer ""
set theTitle to text returned of result
display dialog "Enter text:" default answer ""
set theText to text returned of result
do shell script "curl -F \"title=" & theTitle & ";text=" & theText & "\" " & address