Jump to content

display return value (from script) in form


MidgardTree

Recommended Posts

Hi-

 

Thought this was going to be easy...now, not so much.

 

Suppose I have a form. The user enters some data into a field. Suppose there is a "check syntax" button. The user clicks on it, the field sends the entered data to a php script, which analyzes the data and (should) return a variable that contains "good" or "bad." It might even send back a modified string of the original data with annotated comments saying why it is bad.

 

I want to display the returned value on the same form, preferably under the submitted field:

 

Enter code: [original data]  <button: check syntax - calls php script for validation>

[display return value from php script with results from check]

 

Could someone please explain exactly how to accomplish this?

 

Many thnx,

 

-Midgard

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.