Send POSTs to a PHP script on a server
- by Sam Jarman
I have a PHP script on a server
<?php
// retrieve POST vars
$comment = $_POST['comment'];
$email = $_POST['email'];
// remove trailing whitespace etc
$comment = trim($comment);
$email = trim($email);
// format date accoring to http://www.w3schools.com/php/func_date_date.asp
$date_time = date("Y-m-d-H-i-s"); // i.e. 2010-04-15-09-45-23
//…