I have a basic search box that is going to send a request to another url (not on my site) the data has to be url encoded. My question is where does the php code go for the variables that are being encoded. Does it go inside the form tags before the submit, I am working this out on paper and my head so I don't have the code yet. Any general steps would be appreciated.