Like the last post said, close the script with ?> not php?> and yes, both <? and <?php works...most professionally done script I've see uses <?php
You say it still doesn't work? Is it still displaying as clear text?
Try do one step at a time, maybe get one of the POST and output it to the screen. Than move downwards on the code.
trim($text) does not change $text
PHP Code:
$trimedText = trim($text);
Same thing for stripslashes
How about this
PHP Code:
$name = trim(stripslashes($_POST['name']));
Not sure about your server setting, but I see that you should use addslashes() instead of stripslashes if you are inserting those values into the db.
$error will always = ""; not sure what you are checking for...
PHP Code:
$error="" ;
if ($error == "") {
echo "Thank you for using Pigeon Post. A pigeon has been dispatched to your local post office." ;
}else{
echo "$error <P> Your card was NOT sent. Please hit the back button to try again." ;
}
calling mktime()? where is the int hour, int minute and other variables coming from? If you just want the current timestamp, just do $time = mktime();
To upload image or files to the server, you must...
do
[HTML]
<form action="whatever.php" method="POST" enctype="multipart/form-data">
<input type="file" name="imgfile">
<input type='submit' value="upload">
</form>
[/HTML]
PHP Code:
//now the data...
$_FILES['imgfile'][]; //a 2d array can allow you access the files now
Check out the link below for the $_FILES description...since I'm not allow to post url yet(still under 15 post), copy and past the link below
us3.php.net/manual/en/features.file-upload.php#features.file-upload.post-method
Hope this help.