I don't know where that spurious '<' is coming from. Try doing View Source on the form page in your browser and see what the <form> tag looks like when PHP generates the action URL. That might give you a clue.