Grow your CSS skills. Land your dream job.

Send php data with javascript

  • # February 16, 2010 at 6:16 pm

    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:

    1. image upload button selected
    2. dialog box shows
    3. images selected
    4. User selects ok
    5. dialog box goes away
    6. images are uploaded to area specified in the php file

    I have the box created and I know how to code the php, just working out how to connect the two.

    # February 16, 2010 at 6:30 pm

    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.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".