How can I take an input from one input box and use it to generate a comment on another input box of the same Php file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How can I take an input from one input box and use it to generate a comment on another input box of the same Php file?

I want to create a Php form with username, age and comment as input fields, after inputting the name and age, a comment should get generated in the comment input field based on the age entered on whether someone is legible to vote or not. (No use of js)

6th May 2022, 9:48 AM
ODONGO BRIAN NYEERO
ODONGO BRIAN NYEERO - avatar
2 Answers
+ 2
This will help you. but this code works in a server, web browser or other editor but unfortunately not here. https://code.sololearn.com/wU7ohrL5Ys1A/?ref=app
6th May 2022, 1:12 PM
JaScript
JaScript - avatar
+ 1
Please avoid writing code in the post's tags https://code.sololearn.com/W3uiji9X28C1/?ref=app
6th May 2022, 11:27 AM
Ipang