Jump to content
Sign in to follow this  
mona

listbox in html

Recommended Posts

I have a table called officer that contains the names of officers. I want to make a page that lists these officers and when I click on a certain officer I can delete or update this officer, also there is a button called add so when i click add and insert a certain officer I want the name to be added directly to the old list. how can I make this in html please let me know the tools and if any one can gave me a simple example he will be more than welcome. knowing that I know how to do the sql statements i only wants to know the html tools like list box or something like that.

Share this post


Link to post
Share on other sites

yes I'm already working with phpwith apache2 and mysql all of them are working carefully, so how to do what I need using these languages.

Share this post


Link to post
Share on other sites

if I am understanding you correctly, you will need to use the "onchange" attribute in your <select> tag that will submit the form. Your action page would identify this, run the SQL, and return you back to the page.If you google "javascript onchange form submit" - that should help.i.e.http://www.javaworld.com/javaworld/jw-06-1...javascript.html

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...