22.03.2012, 17:49
Ok, i really need help here;
Because on the dutch board i don't get help :-/ (screw you guys).
This is a part of my php file:
This is my form:
The problem is that i don't get something... it doesn't show the echo's. I want to check the image size, then it should be save somewhere + showing on a webpage. So like image uploading...
Because on the dutch board i don't get help :-/ (screw you guys).
This is a part of my php file:
PHP код:
$picfilename = $_FILES['pic_map']['tmp_name'];
echo '<b>Name: '.$picfilename;
$picsize = getimagesize($picfilename);
echo $picsize;
Код HTML:
<form name="addmapform" method="post" action="objectadd.php"> Account name: <input type="text" name="name" id="name"><br> Account password: <input type="password" name="pass" id="pass"><p></p> <label for="ref"> <big>Map Name:</big></label><br> <input name="ref" type="text" id="ref" value="" size="50"><p></p> Type<br> <select name="objecttype" id="objecttype"> <option value="PAWN_Code">PAWN code</option> <option value=".map">.map file</option> </select><p></p> <label for="pawn_objects"><b><big> Map data:</b></big></label> <p> <i>Objects</i><br> <textarea name="pawn_objects" id="pawn_objects" cols="50" rows="10">Here CreateObject();</textarea><br> <i>Cars</i><br> <textarea name="car_spawns" id="car_spawns" cols="50" rows="30">Here CreateVehicle();</textarea> <!--<label for="datafile">or upload .map file:<br></label> <input type="file" id="datafile" name="datafile" size="40">--> </p> <label for="pic_map"><b><big> Map screenshot (size must be 125x125)</big></b><br> <input type="file" id="pic_map" name="pic_map" size="40"><p></p> <input type="submit" name="submit" id="submit" value="Submit my map !"> </form>