Frames within a form? + internal search engine?

Hello all,
Im new to this forum and cant find a search option for threads, so forgive me if it has been covered. (I have tried searching through threads but there’s hundreds!)

So…

1.) I am trying to construct a members login box in the top left hand corner on my webpage, however, even though Im trying to learn as much PHP as I can, Im stuck because I cant seem to locate the ‘<form>’ in script, after I construct the login box (using frames to give it a neat style and alignment) it seems to lose its <div> tags for a form.

I may be talking rubbish here, but I will definately fetch more info for the problem.

Basically, is it necessary to use the tables to align or should I use a different method? and
Are tables compatible with a form?


2.) Internal search engine.
I have searched the net and many sites like this (web developing) but I cant seem to find out how to create a search engine that would search the content of the website.
I have discovered briefly that you can use google to do this to some extent, but the result Im searching for would be, for a new page to load, and a highlight on the words that have been searched. I have tried looking through source codes of sites to try and find out how they do it, but it seems like a far cry of translating for an amateur like me. Im guessing I would have to use a server-based solution but what on the client-side would I have to consider?

Where does my questions need to be more specific?
Any help much appreciated.
Thankyou very much
–temuj–