PDA

View Full Version : Frames within a form? + internal search engine?



Temuj
November 8th, 2006, 08:00 PM
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--

bwh2
November 8th, 2006, 11:36 PM
1) well, you need <form> or your login won't work. i don't understand why you're using frames, but i suppose it could work. i would recommend not using tables to layout your design.

2) you're probably going to need a server-side language. my advice is to just use the google search plugin. creating your own internal search isn't going to work unless you know what you're doing. as far as highlighting the text goes, you might be able to use javascript to grab the http referer. that would give you the address of the google search being performed. it also means you would get to see which words are searched. based on that, you could use javascript to highlight the words on the page.

Temuj
November 9th, 2006, 04:42 AM
thanks bwh2,
I didnt mean to say 'frames' I was trying to describe that Im using the table cells, to align the text input boxes after the description of the input (Username:, Password) at equal positions...