Soldato
I have a classifieds script and within it I found an unused section - it seems an image uploading function. As it goes I want to add image upload functionality, (please forgive my ignorance!) by activating this section of the script, should the image upload fucntion work? ie is any more scripting required?
Thanks guys
Thanks guys
PHP:
// let's build the page content
if ($go) {
$output .= '<p class="cfbody">Thank you!</p><p class="cfbody">Your listing has been succesfuly inserted into our database. ';
if ($this->require_listing_confirmation) {
$output .= ' An email has been sent to your mailbox. Please follow the link in the email to confirm your listing. ';
}
$output .= 'If you have entered a password, you can come back later and modify or delete this listing.</p>';
$output .= '<p class="cfbody"><a class="cfbody" href="'.$_SERVER["PHP_SELF"].'?cf_action=details&category_id='.$_GET["category_id"].'&listing_id='.$id.'">Review</a> your new listing<br>';
$output .= '<a class="cfbody" href="'.$_SERVER["PHP_SELF"].'">Return back</a> to homepage</p>';
/*if ($this->allow_file_upload) {
$output .= '<p class="cfbody">If you have image that you would like to upload, please use the following form. ';
$output .= 'Browse your HDD and then click on Upload button.';
$output .= '<form enctype="multipart/form-data" action="' .$_SERVER["PHP_SELF"] . $_SERVER["QUERY_STRING"]. '" method="post">';
$output .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.$this->max_file_size.'">';
$output .= 'Image file: <input name="adimage" type="file">';
$output .= '</form></p>';
}
*/
// send email requesting confirmation
if ($this->require_listing_confirmation) {
$this->mail_listing_confirmation($_POST["email"],$id,$secret);
} elseif ($this->send_courtesy_email) {
$this->mail_thankyou_note($_POST["email"],$id,$_GET["category_id"]);