hi,
im implementing a search on my site using a form on index.php that redirects to /includes/search.php

currently it displays the results at domain.com/includes/search.php is there a way to do this more professional? im familiar to mod_rewrite but have already rewrits for my dynamic content and dont want to break anything there :)

When you say "More proffessional", what exactly do you mean?

domain.com/?s=keyword would be great

EDIT: ive managed to find a solution. send a GET to index.php, fetch $_GET['s'] and adapt content, problem is i stored my search result in a variable in search.php. is there any way to display that in index.php ?

aaahh, that?? Ok. So, U TRY OUT THE CODE, THEN; WE'LL MEET YOU HALF WAY.

i finnaly got it to work. stupid include mistake :) THX

Thats gud to know!! CONGZ.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.