calling a php function within a html form
Posted: Mon Aug 07, 2006 4:53 am
hello there
I am using PHP to query a database whose contents are stored in MySQL.I want to create an query interface wherein i intially display some fields using html forms.If the user wants more fileds to search they can include it by clicking on an add button.And finally there will be a submit button that will take the query and show the results.I have included the the things for displaying the fields in a php function.How do i call this function to the form.All ,the php function,html form are in the same file itself.Or is there is anyother way to do this functionality.Kindly lt me know asap.I am a newbee.....
Thanks in advance
RAmya
I am using PHP to query a database whose contents are stored in MySQL.I want to create an query interface wherein i intially display some fields using html forms.If the user wants more fileds to search they can include it by clicking on an add button.And finally there will be a submit button that will take the query and show the results.I have included the the things for displaying the fields in a php function.How do i call this function to the form.All ,the php function,html form are in the same file itself.Or is there is anyother way to do this functionality.Kindly lt me know asap.I am a newbee.....
Thanks in advance
RAmya