Forums

Send php data with javascript

I’m working with an html editor and creating a custom image/file upload plugin. The editor uses javascript to display everything and to accept user input. My plug in will accept the user file with <input type="file"> and sends the file info to a php file for processing. without redirecting the user. Basically:

I found a way around it. I figure this will be to much of an issue since php is server side and java is client side. I’m going to use a work around to only use php and use the ok button form the editor for when the user is finished uploading.

Tips

Categories

We have a pretty good* newsletter.

Email Address

CSS-Tricks* is created, written by, and maintained by Chris Coyier and a team of swell people. It is built on WordPress, hosted by Media Temple, and the assets are served by MaxCDN. The fonts are Source Sans Pro and Source Code Pro. It is made possible through sponsorships from products and services we like.