Jump to content

Radio Button not working/ inserting image help [Solved]

Recommended Posts

Okay, I found out the solution to that error.. I utterly embarrassed myself for not looking through thoroughly >< With the help of this post : http://w3schools.invisionzone.com/index.php?showtopic=47997&p=265892 , I realised I had moved my coding to the starting of html form and that what caused the error since the header location must be located before the html tag. Thanking Ingolme indirectly (Thanks a bunch :D) . Anyways, I still can't validate if the file is not image. It won't show the $errors[] either. >< I'm not sure where i go wrong o,o

Edited by Silence~
Link to post
Share on other sites

If this line isn't working:

if ((!in_array($mimetype, $allowedTypes)) || (!in_array($extension, $allowedExtensions))) {
Then print out what you're checking for:
echo 'MIME type: ' . $mimetype . ', extension: ' . $extension';
If something like that isn't working like you expect the first thing to do is verify everything.
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...