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:
- build html form 5 text inputs, stacked on top of 1 (i think using position: absolute).
- place html table underneath inputs.
- place submit button underneath table.
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 +.
when user hits submit button, 5 input values submitted action='*.php'
Comments
Post a Comment