אהלן,
יש לי סקריפט העלאת תמונות עכשיו, איך אני עושה שבכל פעם שאני אעלה תמונה תיהיה חתימה על התמונה ז"א לוגו של האתר יהיה על התמונה למטה,
תודה לעוזרים.
הסקריפט:
PHP קוד:
<?php
if ($_REQUEST[completed] == 1) {
$newname = uniqid("").".jpg";
move_uploaded_file($_FILES['mailfile']['tmp_name'],
"uploads/$newname");
}
echo "<a href=\"uploads/{$newname}\"></a>";
?>
<html dir="rtl">
<head><title>upload</title></head>
<link href="style.css" rel="stylesheet">
<img src="/images/logo.jpg"></br>
<br>
להעלות אך ורק קובץ מסוג JPG | גודל קובץ עד: 500kb</font></br>
<body><h1></h1>
<?php if ($_REQUEST[completed] != 1) { ?>
<b></b><br>
<form enctype=multipart/form-data method=post>
<input type=hidden name=MAX_FILE_SIZE value=1500000>
<input type=hidden name=completed value=1>
בחר תמונה בבקשה: <input type=file name=mailfile></br>
<input value="שלח!" type=submit></form>
<?php } else { ?>
<b>הקובץ עלה בהצלחה!</b>