Hello, I am attempting to write my very first script. It is a simple one but I'm having some issues.
I'm attempting to make a script that upon a user submitting text in a html form, it checks to see if that text exists as in a mysql database and if it does then redirect the user to www.domain.com/'user_submitted_text'. If not then give an error prompt.
I submitted a script request but had no luck with finding an existing script that did this. See that thread here:
http://www.programmingtalk.com/showthread.php?t=22348
My mysql database has one table named users that has two columns of user_id and username.
When running the code in a browser I get this...
"Parse error: parse error, unexpected T_ECHO in /home/.../affiliate.php on line 12"
Here is my code...
Thank you.
