While I realize that this isn’t the most efficient bit of code, it will not work for August or September! I’m using PHP 5.4 and XHTML 1.0 Transitional. I’ve tested it in the lasted IE, Firefox and Google browsers. I’ve checked the code that is sent to the browsers and there isn’t…
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
Is there a more elegant way of remembering user input after submission for drop-down lists in a HTML form?
I have a number field and a drop-down list that I am using as part of a form, as follows: The $messages variable is an array that stores any error messages generated by the form. The bit between the <?php & ?> tags are there to ensure that if there is an error, that it will echo back the values
How can I disable the back browser button after user press logout and destroy session?
I am having trouble with session_destroy(). When the User press Log out it have to destroy the session. I wrote the following code: Logout.php After pressing log out, when I press the browser back button it is showing my previous Logined user page and session username in Login.php page Login.php LoginViewCont…
Select box Onchange: autosubmit() option with php
So it’s like I have a selectbox, with while loop as option as I want to bring out the options from database, is it possible to click on the option and link? The while loop is like this This is the select box But on clicking the option I want to link it to How can I do this? Answer