Jump to content

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


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.