02-25-2008, 02:56 AM
|
#3 (permalink)
|
|
The Wanderer
Join Date: Feb 2008
Posts: 13
Thanks: 3
|
this is a custom CMS backend to add advetisement banners to my website but of course now it's not working. My assumption is that PHP5 uses move_file_uploaded now instead of copy?
Ok. still didn't work. Again saying i didn't select an image? i added a var_dump(@POST); to my script and the image file is not being passed through by the script? here's my form that is submiting the info is there a problem with this maybe?
HTML Code:
<form enctype="multipart/form-data" action=savead.php method=post>
<p>
<input type=hidden name=adtype value="O">
<input type=hidden name=groupid value="2">
Title<br><input type=text name=adtitle size=50>
<br>
Upload Ad<br><input type="hidden" name="MAX_FILE_SIZE" value="100000" />
<input name="adimagefile" type="file">
<br>
image type<br><input type="radio" name="imagetype" value="jpg"> - Jpeg <input type="radio" name="imagetype" value="gif">Gif<br>
URL<br>
http://<input type=text name=url size=50>
<br>
<input type=reset value=Reset>
<input type=submit value=Submit>
</p>
</form>
here's my $_POST variables...
PHP Code:
Array ( [adtype] => O [groupid] => 2 [adtitle] => Test Title [MAX_FILE_SIZE] => 100000 [imagetype] => jpg [url] => www.google.com )
No $adimagefile
|
|
|
|