Skip to content

Tag: html

PHP page is working locally, but not on the server

My PHP page is blank when I upload it to my server and navigate to it in a browser. On the welcome.php page: SOLVED. Permissions issue. The PHP file needed to be 644, not 666. Answer The problem: This is a silly Bluehost error. Typically related to file permissions. See here: http://www.bluehostforum.com/show…

Dynamically output the page title with php

I am trying to output the page title dynamically. I am using induces and this script is withing the header.php the goal is to output the header dynamically using a case/switch statement. here is my code: I am getting a error telling me my variable $title is not defined? What i am doing wrong? Answer In your f…

How to pass variable via AJAX / jQuery?

I would like to know how do I pass a variable to another php-file via AJAX? The variable that has to be passed is called: The problem is that my form in ‘pm_form.php’ has no access to the variable ‘$id’. My script looks like this (this script fires a modal-window and that modal window …

PHP Cleaning special characters from string

so I made this scraper and it returns strings from multiple sites. I want to check if the strings match, so I use php to clean the string and check. However, the & and other special characters appear in 2 ways, one as & and the other as &. How do I go about removing each type. I already have

getting value of with $_POST gives text

So, I’m retrieving these options from a database and I need to retrieve the value but I’m getting the text in between the tags by doing this therefore if I print $inst I get the “IUTIRLA” for the first option but I need the 41 I don’t know what I’m doing wrong… this i…

onclick not loading iframe

Here is the JS I am using This is in the head of the document. I have made a sidebar containing links: I have a target frame as: It works when I click the top level link, Sales in my case, the relevant document gets displayed in the target frame, but as soon I navigate to submenu links, its get