Jump to content

[SOLVED] Post data to php then post back to cell in form


scriptham

Recommended Posts

Hi

 

Would you mind helping with a formprocessing question please.

 

Is it possible to post data back to a form after a server side calculation?

 

I have used the java script

document.strength.M1.value = M1		

To build a prototype but now in php I don't have this sort of thing available. (It posts the value for M1 into the M1 cell in the strength form).

 

If it can't be done then I will find another way. Having processed the submitted data I would probably need to read the contents of variables into a replacement form or even a similar table design and have the page refresh. Perhaps I could ask the supplementary question, is all this possible on user pressing submit?

 

I'm afraid I'm a bit of a newbie, sorry.

 

Many thanks

ScriptHam

 

 

More or less it is the same as if you put a value automatically in HTML, except the value is a variable.

 

Just a for warning, This gets horribly complicated when you get radio buttons, you need an IF statement for each button.

 

~D

Hi

 

Thanks Daleeburg and thanks Drummer. Its certainly worth having the warning about the radio btns.

 

Brilliant solution - it works like a charm on numbers, which right now are my greatest concern.

 

Many thanks and a very merry Christmas.

 

Scriptham  ;D

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.