Re: PHP and/or Javascript
willl69 wrote:
> Hi,
>
> I was wondering if anyone knows of a way to test if javascript is on with
> PHP or any other language. I need to test if it is enabled and if it
> isnt, redirect to another page. Any help greatly appreciated.
>
> Cheers
>
> Will
It'd be a lot easier to redirect using javascript - that way if it's not on
you'll know about it.
C.
.
Relevant Pages
- Re: Post with redirect?
... you made it about javascript, ... He wanted a way to redirect a port with data to an external site and I gave it to him. ... And you still haven't showed us how to do a redirect with post values in PHP. ... the only thing jerry got right is that it would be a lot of work. ... (comp.lang.php) - Re: Values not displaying in second form after post.
... I have logic in the PHP code within the input ... >> I leave the form and I won't get those error messages displayed on ... >> that is a redirect it is not validation. ... >> if I were using Javascript and the only call I make to Javascript is ... (comp.lang.php) - Re: Two Submit buttons on one form
... idea, IMO, to rely on javascript when you don't have to. ... I agree, PHP could handle it, just post the form to a single script which will redirect to your desired location. ... process it and then directly redirect the user or reload the page without the $_GET but I think you might be limited in the size of the form. ... (comp.lang.php) - Re: [PHP] AJAX and PHP
... Firstly without a redirect. ... You could just use javascript and CSS to show some sort of error message. ... You could let PHP send back a status to javascript. ... Well it looks like you need a extra Ajax call to the server. ... (php.general) - Re: Values not displaying in second form after post.
... I have logic in the PHP code within the input ... But your redirect will not allow *any* of the values to be processed, ... > if I were using Javascript and the only call I make to Javascript is ... (comp.lang.php) |
|