I am new to HTML5. I would like to build a website using HTML5 that I can use in both Android and iPhone. I spent a couple of days to get a solution, but failed. Below is my scenario:
- MySQLdatabase has a table (
userinfo
) which stores user information, e.g. name, age, sex, occupation, hobby, address, etc. - I have an HTML5 design (
category.html
) where 3 options (age<5,age>5 and age<20,age>20) exist as list with anchor tag. - If I touch
age<5
, then it will show a list of all users with name and sex whose age is less than 5 inlist.html
. Next I will touch a name from this list and it will show details of this user indetails.html
The query is simple: select name,sex from userinfo where age<5/age>20 etc.
I am using PHP to connect to the database. When I use a button to assign an action (GET/POST
method in PHP) in a form, it is easy for me, but here it is not a button. It is a list with an anchor link. How can I do it? The above scenario is for both Android and iPhone.