Unless you're using an 'if' statement, the header redirect must be the first line of
the page, above any HTML markup.
Jim
www.websitemanagers.net
- Original Message -
From: "Scott Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 21, 2003 8:04 PM
Subject: [PHP]
Cookies are a possibility but not always functional. Many people have them shut off,
or services like WebTV do not support them. Two other possibilities are seccions and
POST variables.
_SESSIONS_
forma2.php
if((!isset($_SESSION["username"]) || (!isset($_SESSION["password"])) {
header("Location
To call the file from anywhere within the document space, try this:
include($_SERVER["DOCUMENT_ROOT"]."/common/setup.inc");
Jim
- Original Message -
From: "Robbert van Andel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 21, 2003 1:41 AM
Subject: [PHP] Includes insi
Try adding $ext onto the end of str_replace like this:
$a_query = (str_replace("www.", "", $a_query).".".$_POST["ext"]);
$a_query = (str_replace("http://";, "", $a_query).".".$_POST["ext"]);
Jim
- Original Message -
From: "Cesar Aracena" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent:
Give your forms unique names.
-- form page --
-- whatever.php --
if ($_POST["form1"] == "Submit") { do something;}
elseif ($_POST["form2"] == "Submit") { do something else;}
elseif ($_POST["form3"] == "Submit") { do something creative;}
else {
die("no form submitted");
Jim
- Original Mes
Yahoo has a very active group for PHP/MySQL.
http://groups.yahoo.com/group/php_mysql/
Jim
- Original Message -
From: "Sam Masiello" <[EMAIL PROTECTED]>
To: "JLake" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, December 18, 2003 1:56 PM
Subject: RE: [PHP] MySQL newsgroup
Th
If you need to store both date and time, there are several ways to accomplish this.
MySQL has built-in date/timestamp options, but those long strings would need to be
converted for be human readable.
The option I use most is telling PHP what format I want to use and entering it into
the databas
Paul
What you have entered there is not normal sentence structure. Since none of your
characters have spaces between them, the browser has noplace to break into the next
line. Try typing normal sentences including spaces and you will see that the browser
will break at or near the right edge, de
Some of us prefer the basics. Note Tab Pro www.notetab.com
Has syntax highlighting and enough clip book libraries to do just about anything we
want.
NetCaptor www.netcaptor.com for previewing our work.
Jim
www.websitemanagers.net
- Original Message -
From: "Jough Jeaux" <[EMAIL PROTECTE
I like Eric's idea of showing the values and added a form to it so you can
select the number of items to show before running the script.
"
Maximum Number to Show:
";
}
else {
for($i = 1, $j = 1; $i <= $_POST["i"]; $i++, $j++){
if($j == 5){
$j = 1;
print "\n";
}
print $i." is to ".$j."
10 matches
Mail list logo