php - Adding elements to a table from an input area -


i trying have image below in php page. (the links in comments. unable post them here properly)

once enter keyword , hit "plus" should appear in table, along color right. sequence of colors predetermined. if enter keyword again , hit "plus" again, keyword should appear below earlier keyword int table. time being assuming table consists of 5 rows , there less or equal 5 keywords.

also want have submit button @ bottom when clicked should send keywords present php file. have form action attribute set php file. table , keyword input field part of form.

i prefer using javascript , not php many complications. there way can store keywords , send php file once form submitted?

any appreciated.

you could:

  1. build html form 5 text inputs, stacked on top of 1 (i think using position: absolute).
  2. place html table underneath inputs.
  3. place submit button underneath table.
  4. use javascript to:

    • hide 4 text inputs aren't being used
    • display text input , corresponding color in table when user presses +.
    • hide current text input , show next input when user presses +.
  5. when user hits submit button, 5 input values submitted action='*.php'


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -