Javscript Redirection

Hello

I am trying to get from one page to another but the second page will not open. I am confused as to why and would appreciate any help

My html code is
button type='button' class='basic menu' onclick="pageSelect(1)" Gallerybutton (sorry, had to take out the angle brackets to get this to show)

My javascript code is
window.location="page.php?t='catalog'";

The read out on the accessed page is

The website cannot display the page
HTTP 500
Most likely causes:
•The website is under maintenance.
•The website has a programming error.
What you can try:
Refresh the page.
Go back to the previous page.

The server error ilog says

[Sun Aug 19 20:16:31.523285 2018] [core:error] [pid 6860:tid 828] (20024)
The given path is misformatted or contained invalid characters: 
[client ::1:52434] AH00127: Cannot map GET /castle_green/page.php&t=%22catalog%22 HTTP/1.1 to file, 
referer: http://localhost/castle_green/

I am using apache version 2.4.9

The single quotes might be the problem there, but failing that we have a Server Config forum that can help with Apache-related issues.

If you highlight the code and then click the button up top that looks like </>, that will allow you to keep the brackets in your code and it will still show.

I’d like to see your code for function pageSelect().

V/r,

^ _ ^

Thanks your the comments. I did solve the problem. It was a syntax issue elsewhere; I was staring at it but could not see it. Anyway, as usual in these cases it was my fault.

Mike.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.