Execute PHP without leaving page

Posted by Dylan Taylor on Stack Overflow See other posts from Stack Overflow or by Dylan Taylor
Published on 2010-06-02T04:11:20Z Indexed on 2010/06/02 4:13 UTC
Read the original article Hit count: 454

Filed under:
|
|
|
|

Okay. I have a form - textarea (named "su") and submit button.

When the form is submitted, I need to

  1. run a PHP script without refreshing/leaving page
  2. "echo" or somehow print a return on the screen

I'm pretty sure this works via some kind of ajax request thing. but I have no idea what I'm talking about. I'm not big on ajax or javascript, but this is a function i use very frequently and I'd like to learn how it works so I can implement it when i need to now and in the future.

Like i said I'm uneducated with ajax or java. a quick example would be wonderful.

thanks for taking the time to read!

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript