PHP/HTML question.
#1

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:
PHP код:
$picfilename $_FILES['pic_map']['tmp_name'];
            
            echo 
'<b>Name: '.$picfilename;
            
$picsize getimagesize($picfilename);
            
            echo 
$picsize
This is my form:

Код HTML:
<form name="addmapform" method="post" action="objectadd.php">
								&nbsp;&nbsp;Account name: <input type="text" name="name" id="name"><br>
								&nbsp;&nbsp;Account password: <input type="password" name="pass" id="pass"><p></p>
								<label for="ref">&nbsp;&nbsp;<big>Map Name:</big></label><br>
								&nbsp;&nbsp;<input name="ref" type="text" id="ref" value="" size="50"><p></p>
								&nbsp;&nbsp;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>&nbsp;&nbsp;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>&nbsp;&nbsp;Map screenshot (size must be 125x125)</big></b><br>
&nbsp;&nbsp;<input type="file" id="pic_map" name="pic_map" size="40"><p></p>
&nbsp;&nbsp;<input type="submit" name="submit" id="submit" value="Submit my map !">
							</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...
Reply


Messages In This Thread
PHP/HTML question. - by Michael@Belgium - 22.03.2012, 17:49
Re: PHP/HTML question. - by Slice - 22.03.2012, 18:00
Re: PHP/HTML question. - by mevi - 22.03.2012, 18:18
Re: PHP/HTML question. - by XFlawless - 23.03.2012, 02:47
Re: PHP/HTML question. - by Michael@Belgium - 23.03.2012, 16:48
Re: PHP/HTML question. - by royal_king - 23.03.2012, 17:13
Re: PHP/HTML question. - by Michael@Belgium - 23.03.2012, 19:41
Re: PHP/HTML question. - by XFlawless - 24.03.2012, 03:16

Forum Jump:


Users browsing this thread: 6 Guest(s)