Its kind of complicated.well iam trying to create a search form,where the output will be like :
Found (a number) results:
Name:
Surname:
[View Button1]

Name:
Surname:
[View Button2] and so on,depented on the results of query.

i am calling a fun on pageload.in that i create the buttons,and i am thinking before the append command to call another function to write the
Name:
Surname: . how can i do that? hope you get what i mean, thnx in advance

Why not create them as links as opposed to buttons.

Isn't this what Google does?

yea i was thinking of that,but it is better looking with buttons i guess.anw proplem sovled

Perhaps maybe posting a quick snippet of the solution so others who have a similar problem might be able to learn from you.

Member Avatar

IF solved, don't worry, but with iamthwee here, make a link with a css background sprite. I imagine that's the standard method. Placing a html button outside a form scenario probably isn't a semantic use. Perhaps I'm being pedantic.

oh you think ardav? i am beginer at php so you maybe right.to be honest i learn php from tutorials and some ebooks! i am working on a college degree project so i hope everything will go smooth :P

Member Avatar

Ok :)

Mind you this is pure html/css, it shouldn't depend on php. php may produce the list with the button/link, but the actual button display will be down to the html tag and attribute (e.g. class or id) and the css applied to it (e.g. hover, active states).

cause its a quite big project, i am making first all of php html forms and mysql connections and later on i will do the css ! maybe a bad call...if so i ll be just make it yourway ardav !

hello friends my question is same