data output in text format

[ad_1]

Hi, pls, hlp

Have a code:

…else if( AND(fieldname3, fieldname40) ){
result = ROUND(fieldname3*fieldname40, 0.0000001);

html=’Power is‘+result+’ W‘….

initial data:

fieldname3 = 2 Joules and Fieldname40 = 23 seconds

with the source data and the above code we get in html text field, that the “Power is 0.09 W”

How can I implement a response like:

“Power (P) at energy W = 2 Joules, and time T = 23 seconds is 0.09 Watts”

That is, I need to implement it so that the data entered by a person from the fields is automatically substituted in the response.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer