hey
right, simple things.
1. Form validation.
I have my form validated by javascript, then by php (incase the user does not have JS enabled). however, when validaed by the server, I link back to the registration page, and all the data they entered is gone. what is the best way to store the day (seeing as $_POST only works across one page change). Putting it in the url is abit dogy, as if there is a lot of text, it can mess up. the only other way I can think of is storing it in a session. Then I could output the value, and also maybe store the error and display it. is this the best way?
2. Checking if JS is enabled.
I know you can use get_browser() to see if the browser is capable of using JS, but is there an easy way to see if it is enabled? The only way I have found is to have a js redirect in the deader, which adds a GET value to the url, and you can check to see if you can actually GET it. Im not too keen on this though, I don't like things in my url if I can help it. I mainly need this to hide certain things, such as the check name function, etc
Cheers +rep or any help
right, simple things.
1. Form validation.
I have my form validated by javascript, then by php (incase the user does not have JS enabled). however, when validaed by the server, I link back to the registration page, and all the data they entered is gone. what is the best way to store the day (seeing as $_POST only works across one page change). Putting it in the url is abit dogy, as if there is a lot of text, it can mess up. the only other way I can think of is storing it in a session. Then I could output the value, and also maybe store the error and display it. is this the best way?
2. Checking if JS is enabled.
I know you can use get_browser() to see if the browser is capable of using JS, but is there an easy way to see if it is enabled? The only way I have found is to have a js redirect in the deader, which adds a GET value to the url, and you can check to see if you can actually GET it. Im not too keen on this though, I don't like things in my url if I can help it. I mainly need this to hide certain things, such as the check name function, etc
Cheers +rep or any help
Last edited:







