Skip to content

Tag: javascript

Redirecting users to different pages after login

i have this website and i want to redirect users to 3 different pages, i have created 2 sign up pages that has a hidden field called role with different values on each of the sign up pages, one being “corporate”..So i used the script below to redirect the user based on the account type he or she c…

Can i put an img src inside an array?

Is it possible to put an img src inside an array? I have this project on html/css/javascript and php and so far I’ve created a website where you can buy cars online. Now I want to create a page where …

Color show not properly in the js tree

I have a problem to get the color in the js tree. Below is my coding: This is javascript: My output cannot follow the number to present the color if I’ve added “$testing” variable word in the front of the number.Like below the picture: Actually I want the output like below the picture. The c…

call a new PHP page and pass a long text

I have a PHP page(main) and would like to call another PHP page(printpage) on mouse click. I need to pass a large text. I do not want to pass it as a url parameter as it will be too big. I guess I want to pass it as an ajax but I want to open the printpage so I can