PDA

View Full Version : 10. Insert PhpDig in a website??


andy_pandy
03-09-2004, 05:44 AM
Could someone explain how I insert a simple search box on my home page and have the results come up on a page fornatted to match my site ie what script goes where. I have read '10. Insert PhpDig in a website' and am not sure about what is the index.php script and what 'same name template' means. Where should the 'configuration files and libraries' be included. Sorry to sound so thick.


Is this the index.php script?

extract(phpdigHttpVars(
array('query_string'=>'string',
'template_demo'=>'string',
'refine'=>'integer',
'refine_url'=>'string',
'site'=>'integer',
'limite'=>'integer',
'option'=>'string',
'search'=>'string',
'lim_start'=>'integer',
'browse'=>'integer',
'path'=>'string'
)
));
phpdigSearch($id_connect, $query_string, $option, $refine,
$refine_url, $lim_start, $limite, $browse,
$site, $path, $relative_script_path, $template);

Charter
03-09-2004, 09:31 AM
Hi. If you are looking to add a form to the main page of your site, just take a look at the HTML on the main page here (http://www.phpdig.net/).

andy_pandy
03-09-2004, 10:00 AM
Thanks Charter
That was very obvious... I think I was looking for something more complicated... as usual!