PDA

View Full Version : getting input values in php direct evaluation


sandy771
06-15-2016, 06:04 PM
I want to code a php direct evaluation page that gets a value from a user, performs some calculations and then outputs the result

i.e. something like a centigrade to farenheit converter where a user enters centigrade value in a box, I calculate the equivalent farenheight and output the result below. Ideally both the input box and the result value would be on the same page, so that a subsequent value can be entered.

is this possible using VBulletin like this?

MarkFL
06-15-2016, 06:06 PM
You could do something like that using HTML and javascript. :)

sandy771
06-15-2016, 06:28 PM
Is there an article somewhere showing how to do this within VBulletin

MarkFL
06-15-2016, 06:34 PM
This well-written article explains how to create your own custom page:

[HOW TO - vB4] Create your own vBulletin page (https://vborg.vbsupport.ru/showthread.php?t=228112)

Then, in the custom template you create to go along with it, you would include the HTML/javascript I spoke of before to display the input elements and perform the calculations and display the output.