send form data using POST

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

Thanks a lot, it works great!

I need the same thing for a project and have an additional question.

Let’s say the php script I’m calling does something like this after it received all the data I’ve sent:

echo "data saved";

How can I get this text into an AppleScript variable?

Edit: Ok, guess I found the answer on my own: set phpReturnVars to do shell script "curl …

Yeah, I’m just learning AS. :wink:

Fredi

Anyway how to sign into hotmail or gmail?