First off, could you post the code that you're having trouble with?
Secondly, if what you're trying to do is pass data from a form to another page that is called from the submit button, and register_globals is OFF on your server (which I believe is default), then you need to call your form variables in a different manner. You need to import the variables from that form using the function "import_request_variables(string $types [, string $prefix]);". Basically, 'string $types' will be a letter (g, p, or c) specifying what method you used to send your data (get, post, or a cookie). The prefix specifies a prefix that will be appended to the beginning of the variable name. When I had this problem, I put this line at the top of my php code:
- Code: Select all
Then, when I referred to my variables, I referred to them as the variable name in the form with 'form_' in front of it. So if I had a variable called 'txtName' in my form, I would refer to it as 'form_txtName' in my php code.
Hope that helps!