All pastes #927330 Raw Edit

Untitled

public text v1 · immutable
·published 2008-03-04 05:46 UTC
rendered paste body
if (isset($_POST['submitted'])) {
	if (is_uploaded_file($_POST['image']))
		{
   		$newfile = "profile/profile?" . $row->id; // $row is set earlier in mysql_fetch_object
   		if (!move_uploaded_file($_FILES['image'], $newfile))
   		{
   	   		print "Error Uploading File.";
   	   		exit();
   	   }
	}