The Way to Programming
The Way to Programming
Well, this is quite a basic thing. I’ll try to describe the procedure here to give you a head start.
In the HTML’s select tag put the categories you want. Each select option should have the value of the folder you want to put the image in. Once you have that in your form, the form will be submitted with the value of of the select/dropdown. On the file upload handler (assuming it is in the same page), grab the value from the select option and use it on move_uploaded_file to put the image in that certain selected directory.
Here’s an example:
My website
Have programmers become (or just able to get away with being) less efficient due to the increase of cpu and ram?
yes. but also software in general is becoming larger (more lines of code, more things going on in the background, more things to be concerned with etc. etc.)
If I understand you correctly, you’re asking if you can prevent this:
<someOtherElement>...
The only way I know is to use CDATA tags:
... ]]>
Hope this helps. It’s not exactly clean as a user can now pass anything via XML and you won’t be able to validate it with the XSD for the outer XML.
My question is are cross domain requests allowed? I know they are blocked in JS for security reasons. Look up CORS =)
Sign in to your account