ujitnos
asked on
PHP coding for Google Search
Hi,
I would like to add a google custom search for the site http://secureinfo.info/
I want the search bar to appear in the right corner of the header section.
Attached is the current header.php file. If you need any other php file, please let me know.
Any help is appreciated as i do not know much about any php coding. I have the google code for the search bar and the search result page.
Thanks
header.php
I would like to add a google custom search for the site http://secureinfo.info/
I want the search bar to appear in the right corner of the header section.
Attached is the current header.php file. If you need any other php file, please let me know.
Any help is appreciated as i do not know much about any php coding. I have the google code for the search bar and the search result page.
Thanks
header.php
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi, I also noticed that it is not aligned properly in Firefox
The form needs to be within a table row and data cell
you need to put
<TABLE>
<TR><TD>
... your stuff
</TD></TR>
</TABLE>
otherwise it pushes the content outside of the table ... then you can play with the alignment
you need to put
<TABLE>
<TR><TD>
... your stuff
</TD></TR>
</TABLE>
otherwise it pushes the content outside of the table ... then you can play with the alignment
ASKER
Ok, thanks, got that right. Now how do i move it a bit down ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
ASKER
I still not able to produce search results, but i will look into that.
This is what i inserted:-
<TABLE style="position:absolute; right:150px">
<form action="http://secureinfo.info/search-results" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-80fefer
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="55" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>
</TABLE>