Hi,
I've created a simple database uing "mysql" for use in a very small business. On the home page you can search for an employees records one of five ways (name, work number, department, email, telephone number).
My problem is when the results are displayed the results are always displayed under the search boxes. I would like the results displayed on a new page with what you have searched for at the top of the screen.
example:
You searched for: work number 11111
......... RECORD DISPLAYED HERE .........
My criteria is for the search boxes to be in the middle of the screen but the results always display underneath the search boxes.
Hope I've explained well enough it's a bit jumbled up but any help would be appreciated.
Thanks in advance
php display problem .....
Moderator: General Moderators
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: php display problem .....
One way you could do it is by specifying an "action" script for the form:
With the result_page.php you can retrieve the form data and then display you html and results.
Get it?
Code: Select all
<form method="post" action="result_page.php">Get it?
-
candymaker
- Forum Newbie
- Posts: 2
- Joined: Thu Oct 09, 2008 7:11 am
Re: php display problem .....
cheers aceconcepts ,
That worked a treat but when I closed he server (apache) the search page didn't work (had some parser error).
I think the problem lies with me and lack of knowledge. I think I need a new search page and display the results on a clean page. For some reason a new window kept opening aswell and I don't want new windows just same page.
Thanks for your help anyway mate I'll try and work it out for myself.
That worked a treat but when I closed he server (apache) the search page didn't work (had some parser error).
I think the problem lies with me and lack of knowledge. I think I need a new search page and display the results on a clean page. For some reason a new window kept opening aswell and I don't want new windows just same page.
Thanks for your help anyway mate I'll try and work it out for myself.