I'm not the best coder, I know php and html fairly well but no where near like a real coder.

I've created a form which creates a post for me, i'd like if I put a URL of a img in one of the input fields it will upload it to lulzimg...this probably takes some smart people 2-3min to do. Would anyone be able to assist me with it? I read that I need to use curl. I've never experienced any of that

I went into phpuploader and tried to take its script to see if I can make it work for me...I could not

Code: 
	$postfields['image'] = "http://ia.media-imdb.com/images/M/MV5BMTkzNzY5OTc3Nl5BMl5BanBnXkFtZTcwNjE4NDQzMQ@@._V1._SX214_CR0,0,214,314_.jpg";
	$postfields['submit'] = "submit";
	$page = curl("http://lulzimg.com/app.php", $postfields, "");
	preg_match('#http(.*)#', $page, $match);
	$imglink = trim($match[0]);
	echo $imglink;
That's what I tried it would not work. Any ideas on how to help me please. I would put a vraible for $postfields instead of the URL but this was for testing purposes.

i'm a complete nub so I really have no idea
pisoj1 Reviewed by pisoj1 on . Could someone create a little script for me please :) I'm not the best coder, I know php and html fairly well but no where near like a real coder. I've created a form which creates a post for me, i'd like if I put a URL of a img in one of the input fields it will upload it to lulzimg...this probably takes some smart people 2-3min to do. Would anyone be able to assist me with it? I read that I need to use curl. I've never experienced any of that :( I went into phpuploader and tried to take its script to see if I can make it work for me...I Rating: 5