Please... I apologize for my sarcasm earlier... however a simple 'I think I can speak for everybody by saying no. Sorry, it's not possible. ' isn't really a response.
What I'm looking for, as i restated, is a way to determine if the page was refreshed. Is there a header flag that is passed...
Is there a chunk of header info or something that i can read and determine if the page was refreshed via the browser?
a header variable that i can access via php?
1. It IS possible... I've seen it done.
2. auto-refresh is NOT set, in META or anywhere else.
Read the question again. I have a webpage that i don't want the user to be able to refresh using their browser. I want them to have to use the website navigation to browse the pages, instead...
I'm trying to block auto-refreshing on a webpage. Either by a browser plugin (FF), The Opera browser's 'auto-reload' feature or by clicking the refresh button. Does anyone know of a way i can do this?
thanks
Jason
I'm trying to block auto-refreshing on a webpage. Either by a browser plugin (FF), The Opera browser's 'auto-reload' feature or by clicking the refresh button. Does anyone know of a way i can do this?
thanks
Jason
I'm getting a unexpected T_CONSTANT_ENCAPSED_STRING error. I can't see what the issue is... anyone able to help???
Jason
$msg = "";
foreach($_POST as $key => $value){
if ($value != "") {
$msg .= "^ ". $key ." = ". $value "<br/>\n"; //this is the line that is reported.
}
}
I'm using a webserver with Fedora Core 2 installed with a Plesk control panel. I've been using the Plesk CP up to now to manage the server. I would like to script email creation somehow - but I do not know what files are created or any other processes that are required. Could anyone give me...
I have a small (2 second) AVI file I want to show full screen as a screensaver. Anyone know the properties/code I need to write in to make it autoplay and loop? right now I have it so that it stretches full screen and plays once.
Thanks all!
Jason
I tried this, and it still gives me the error. Do I need to give the user 'apache' (the web server instance) permissions to access the database, or edit a config file somewhere? Any other guidance is appreciated.
Jason
CLI Version? I'm not sure I follow. I can ssh onto the server but I don't know how to pull up the PHP CLI version. I would assume so, because I believe it to be an error with some permissions, or perhaps the way the webserver is loading the database (which boils down to a permission issue)...
I do specify a user name and password to access the database. Here's the code:
<?
//initialize PHP
//POST checking
print '<pre>';
print_r ($_POST);
print '</pre>';
//insert records
//connect as user
//change user and password to your mySQL name and password...
...and set up a user and password for it.
Then I created a PHP script to insert a name and email into a MySQL database. I finally got it to do *something* and got this error message:
Access denied for user: 'apache@localhost' (Using password: NO)
This baffled me as I don't use a 'apache'...
OK... I've check the error logs, and changed the <? to <?php ...
I made a fairly simple mail form script that runs perfectly. I did a couple other things and finally found an error message.
Access denied for user: 'apache@localhost' (Using password: NO)
This baffled me as I don't use a...
It doesn't do any more. the PHP script is not executing for some reason. I'm going golfing now, work on this later.
I'm open to any suggestions on alternate methods, and thanks for the help.
Jason
Yes I have... the output is a blank page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
OK... First, thanks to you all for helping out. I will post all of the pertinant code for you to review.
I have a layer on the html page set up with a form:
<div id="newsletterlayer">
<form action="addemail.php" method="post" name="addemail" target="_blank" id="addemail">
<table width="150"...
the code was running. the window would pop up and show the 'thank you' text that I put inside the 'if' statement. but no values would get into the database.
I changed the 'if' statement to
if( isset($_POST['email'])
and now I just get a blank window....
Jason
The php code was originally on the same page as the form, and that '$_POST['submit'] was to run the code only if the submit button was pressed. I will take it out and see if that is the problem.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.