Simple debugging query

I have a small issue actually getting variable to show - let alone how to figure out why my images are not uploading. On my form I have the following textarea -

<input type="file" name="imageNew" />

in the page to which this form is posted I have -

$imagetoshow = $_REQUEST['imageNew']; echo "the image is " + $imagetoshow; exit();

I simply cant see why this is displaying a "0"? What I think I need is for someone to point out the obvious to me - obvious to you, not to me. Then I can get on with figuring out why the file isn't uploading.

Thanks in advance.


Files work a little differently... You need to access the $_FILES superglobal.

(From that page as well: Note: Be sure your file upload form has attribute enctype="multipart/form-data" otherwise the file upload will not work.)

To get files, you need to use $_FILES, not $_POST, and the form needs to have enctype="multipart/form-data". Check out the following link for more about file uploads in PHP:

Need Your Help

Mongodb java Query Builder

java mongodb query-builder mongo-java

I am new to java. How can I build this mongo query in java. Any help/hint will be appreciated.

Why CSS is not working when sending HTML email?

css ruby-on-rails-3 heroku html-email sendgrid

As I am using SendGrid service at heroku, I've noticed that when I send HTML based emails, the CSS has no effect, can any one tell me what could be wrong ?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.