Jump to content

Form on html to php that queries


zour1el

Recommended Posts

I need help getting a grasp on something.....

 

I have a page with a simple form (form.html) on it that calls a php page (searching.php) that searches a mysql database.

I have to use iframes or embed the results (that is currently echoed onto the php page)

 

So this of course shows the contents of the mysql dataset cause of the embed is execing the php.

 

How can I output the results to a 3rd page so i can embed it without pre-executing the php.

 

It is in a liferay portal and PHP is not supported on the instance.

 

 

It all reality what i would REALLY like is

 

Form then below it have the results to be visible.......

 

 

Any help would be appreciated

Link to comment
Share on other sites

Just for clarity....

 

Form.html search box that calls search.php by an onclick.

Search.php queries mysql dbase.

and echos out the results

--------------------------------------------

 

Because of the portal and there is no php intergration (GRRRRRR)

 

I have to embed or use iframes.

 

so when embedding or iframing the page shows error Notice: Undefined index: term in search.php on line 5 and it displays the contents of the dbase

 

I was trying to figure away so I didnt have to embed the search.php,  that way the error and contents wouldnt be present.

 

----------------------------------------------------------------------

 

In a perfect world I would love to have some pointers or ideas on how to

 

have from and the results output on the same page so it is seamless (not a full page refresh)

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.