Okay im not sure what this would be called im sure there is a word for it but the basic's are I want the php script to make a search bar on my homepage but the thing is I already have a search bar in place.

So all I really want is for the php bar to direct the user to a different url based on what they enter so obviously the spaces will become `+` signs.

The format would be:

`www.Mysite.com/videos/search_result.php?query=FIRSTWORD+SECONDWORD&type=videos&submit=Search`

So to break this down it would enter this:

`www.Mysite.com/videos/search_result.php?query=`

Then the first word then a space then the second word and continue this pattern for however many words there are and then:

`&type=videos&submit=Search`

Im sure there is a better way to explain this but I know basically nothing about PHP and I was hoping you could help thank you a ton btw.