Smudly Posted September 27, 2010 Share Posted September 27, 2010 I have a form, that when the user click Submit, I need a php variable to be echoed to the page. This is for an upload page. So when they are waiting for the file to upload, it will say "Uploading..." until the upload is complete. All I know so far is I need to create a javascript function and include it in the submit button. This is all I have so far in the submit button tag: onClick="Transferring();" Now I need to figure out the code to include in this function. Any ideas? Quote Link to comment Share on other sites More sharing options...
brianlange Posted September 27, 2010 Share Posted September 27, 2010 Why does it need to be a php variable? If you really do need a php variables from the server you'll have to use ajax. Quote Link to comment Share on other sites More sharing options...
Smudly Posted September 27, 2010 Author Share Posted September 27, 2010 I guess it really doesn't have to. I just need the message "Uploading", to display on the page once the button is clicked. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.