The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Simple html code
suvadip
post Jul 3 2013, 12:19 AM
Post #1





Group: Members
Posts: 1
Joined: 2-July 13
Member No.: 19,374



First of all I am very very new to HTML. My questions may appear very silly. I used to write HTML code in notepad and save it with .html extension and then run it in google chrome browser.




I want to write a html code. The code should be so that in the input field there is only a dropdown menu with entries like 'good' and 'bad'. But the output should be like:

----Ram is a good boy ------

if we choose 'good' from the dropdown menu.


There should be only a partition between the input and output in the same page.
Please give me a sample code.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Jul 3 2013, 10:57 PM
Post #2


Jocular coder
********

Group: Members
Posts: 2,298
Joined: 31-August 06
Member No.: 43



What does this have to do with databases?

There is no "HTML code" for what you want to do: it looks like a very simple server program to provide a response to a form. You need to learn:

(1) How to create a form in HTML
(2) How to write a server program in PHP or similar

Try reading tutorials on HTML, PHP, and basic programming. There is no "sample code", unless you mean "Please write it for me." in which case the answer is "No."
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 17th January 2019 - 07:58 PM