PHP PROGRAM TO GET VALUE FROM TEXT BOX AND DISPLAY IN LIST BOX OR DROP DOWN BOX - Anna University Multiple Choice Questions

PHP PROGRAM TO GET VALUE FROM TEXT BOX AND DISPLAY IN LIST BOX OR DROP DOWN BOX


To perform this, we can use HTML as front end language to design text boxes and Php scripts to get value from the text box based on the inputs given by users in the text box. Values in text box are retrieved by the text box name.

HTML PROGRAM TO DISPLAY TWO TEXT BOXES:
Now save this program as listbox.html.
Output:
Enter any number
Enter any string

PHP PROGRAM TO RETRIEVE VALUES FROM TEXT BOXES
Remove multiple ="True" to get the values in Drop down Box instead of getting it in List Box. Here we have retrieved values from text box in list box

Output:

Click Here to get -- > Php Tutorials by Studentsblog100

No comments:

Post a Comment