php-windows Digest 19 Nov 2001 23:49:03 -0000 Issue 863
Topics (messages 10498 through 10524):
Re: Apache 2.0.28 module
10498 by: Sebastian Bergmann
upload image
10499 by: Brian Feliciano
Re: Back button using sessions
10500 by: Troy Moreland
Re: Secure Web Application
10501 by: Troy Moreland
Active Diretory????????????
10502 by: Conover, Ryan
10505 by: Troy Moreland
10515 by: Egil Helland
10519 by: Conover, Ryan
Re: [PHP] Re: Apache 2.0.28 module
10503 by: The Doctor
Re: Authentication Scripts
10504 by: Ross Fleming
Adding *another* person to an e-mail *to:* address
10506 by: Anthony Ritter
10507 by: Ross Fleming
10512 by: Anthony Ritter
10513 by: Ross Fleming
10514 by: Craig Morrison
10516 by: Ross Fleming
10517 by: Craig Morrison
10518 by: Ross Fleming
10524 by: Daniel Parsons
Julie Meloni's Modified Contact management script
10508 by: Todd Williamsen
10509 by: Ross Fleming
10510 by: Ross Fleming
Read Session in ASP in PHP
10511 by: Marco G
new problem... problem with Query...
10520 by: Todd Williamsen
10521 by: Jim Lucas
10523 by: Olivier Hubert
Couldn't Open Stream Issues
10522 by: josephfinnie.another.com
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Jobarr wrote:
> I need a build of PHP that can be used as a module with Apache 2.0.28
> beta.
Please do not massively cross-post to the various php.net mailinglists
or newsgroups.
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/
--- End Message ---
--- Begin Message ---
how can i upload an image??
i tested using copy( ) but it returned a Permission Denied error...
please help...thanks.
do i really have to do an ftp?
--- End Message ---
--- Begin Message ---
I tried your option 2 and it worked great! Not sure if that degrades
performance or not but getting rid of those annoying messages is much worse
that a slight degradation to me!
Thanks!
"Egil Helland" <[EMAIL PROTECTED]> wrote in message
20011118233831.BGQY4910.mta01@workhorse">news:20011118233831.BGQY4910.mta01@workhorse...
On Sun, 18 Nov 2001 12:01:11 -0600, Troy Moreland wrote:
>Can someone tell me how to get around the following problem:
>
>I am using sessions to store a person's ID and password that they
>authenticate with at the start page. The entire web site is secured
>this way. The problem is that hitting the back key often gives the
>"This page has expired, hit Refresh to Reload" kind of message. How
>can this be avoided? I've written the same application without
>sessions (unsecure obviously) and I don't get asked for refreshes at
>all.
>
>Thanks, Troy Moreland
>
Hi Troy,
AFAIK, there are two solutions to this problem.
1. Switch from the POST to GET method when you are supplying your
information for your site. This is a problem related to the way POST
messages are handled (its sent as a separate data package in fact) by
the web browser, and with get, this is of course in your URL and thus
also handled by default
2. Edit your php.ini file and set the cache limiter to nothing
(session.cache_limiter=;). This will fix the problem for all your
POST forms, for all web pages. If you only want this done for part of
your website, do it with headers instead, eg:
session_start();
header("Cache-Control: ");
header("pragma: ");
blah blah blah...
Hope this helps! ;)
Cheers,
Egil
-=//
Egil Helland / IKON AS - MCSE, Internet, Intranet
mailto:[EMAIL PROTECTED] http://egil.net
//=-
--- End Message ---
--- Begin Message ---
I meant LDAP SSL, not HTTP SSL! :)
"Egil Helland" <[EMAIL PROTECTED]> wrote in message
20011118233756.BGQE4910.mta01@workhorse">news:20011118233756.BGQE4910.mta01@workhorse...
On Sun, 18 Nov 2001 11:58:20 -0600, Troy Moreland wrote:
>Can anyone give me details on how to make my PHP-LDAP application
>secure? I have two unsecure issues:
>
>1) I can't figure out how to get SSL to work.
What do you mean, getting SSL to work? Its just working if you have a
valid SSL certificate, and you communicate over port 443. All your
URLs need to start with https to indicate that its a secure channel,
eg. https://www.whatever.com.
>2) I'm using sessions to store ID and password but the passwords
>are in clear text on the server. I'm running PHP on the W2K
>platform and no one has been able to help me with encrypting on this
>platform.
Well, this is really not a platform problem, but it depends on what
you are storing the passwords in. Is it stored in a textfile, or a
database? MySQL have a very nice password feature which will encrypt
your users password, use the password field type to get them
encrypted. But I need some more info regarding your solution here to
help you out properly I guess...
Cheers,
Egil
-=//
Egil Helland / IKON AS - MCSE, Internet, Intranet
mailto:[EMAIL PROTECTED] http://egil.net
//=-
--- End Message ---
--- Begin Message ---
Has anyone been able to get information from Active Directory using php? How
did you do that?
Ryan Conover
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.pitt.edu/~rscst25/
--- End Message ---
--- Begin Message ---
You could use LDAP. Just depends on what attributes you are dealing with
since AD isn't a true LDAP directory. Anything from the inetOrgPerson class
can not be pulled or updated with AD...
"Ryan Conover" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Has anyone been able to get information from Active Directory using php?
How
> did you do that?
>
> Ryan Conover
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> http://www.pitt.edu/~rscst25/
>
>
--- End Message ---
--- Begin Message ---
On Mon, 19 Nov 2001 09:53:14 -0500, Conover, Ryan wrote:
>Has anyone been able to get information from Active Directory using
>php? How did you do that?
The easiest way to do this is through the use of LDAP. I actually
wrote a script to snatch some info from it, but dont know if I still
have it laying around. Poke me if you need it, but LDAP works fine.
IIRC I did trouble around some with the authentication, but the rest
was fine. Check out the docs for php ldap support at php.net.
Cheers,
Egil
-=//
Egil Helland / IKON AS - MCSE, Internet, Intranet
mailto:[EMAIL PROTECTED] http://egil.net
//=-
--- End Message ---
--- Begin Message ---
I never really worked with querying with LDAP any good resources on it. And
Using PHP with it.
Ryan Conover
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.pitt.edu/~rscst25/
-----Original Message-----
From: Egil Helland [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 19, 2001 5:06 PM
To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]'
Subject: Re: [PHP-WIN] Active Diretory????????????
On Mon, 19 Nov 2001 09:53:14 -0500, Conover, Ryan wrote:
>Has anyone been able to get information from Active Directory using
>php? How did you do that?
The easiest way to do this is through the use of LDAP. I actually
wrote a script to snatch some info from it, but dont know if I still
have it laying around. Poke me if you need it, but LDAP works fine.
IIRC I did trouble around some with the authentication, but the rest
was fine. Check out the docs for php ldap support at php.net.
Cheers,
Egil
-=//
Egil Helland / IKON AS - MCSE, Internet, Intranet
mailto:[EMAIL PROTECTED] http://egil.net
//=-
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
On Mon, Nov 19, 2001 at 11:34:41AM +0100, Sebastian Bergmann wrote:
> Jobarr wrote:
> > I need a build of PHP that can be used as a module with Apache 2.0.28
> > beta.
>
> Please do not massively cross-post to the various php.net mailinglists
> or newsgroups.
>
> --
> Sebastian Bergmann
> http://sebastian-bergmann.de/ http://phpOpenTracker.de/
>
> Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/
>
Has the PHP group contected the Apache Group on this matter.
The Apache Group are a swell bunch of people.
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
Member - Liberal International On 11 Sept 2001 the WORLD was violated.
This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED]
Society MUST be saved! Extremists must dissolve.
Merry Christmas 2001 and Happy New Year 2002.
--- End Message ---
--- Begin Message ---
echo ("$password"); to see exactly what is being returned. There
<I>might</I> be a <BR> being appended to it for some reason...
Ross
-----Original Message-----
From: Todd Williamsen [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2001 03:16
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Authentication Scripts
Ross,
Thanks... That was ONE of the problems... the other was the "if" statement
in the beginning of the script
"Ross Fleming" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Although PHP classes $Password and $password as 2 seperate variables, I'm
> pretty sure when you 'post' the data, it passes them ALL as lowercase.
>
> Call them password1 and password2 and keep all the variables lower case
and
> see if it works
>
> Let me know
>
> Ross
>
> -----Original Message-----
> From: Todd Williamsen [mailto:[EMAIL PROTECTED]]
> Sent: 18 November 2001 23:19
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Authentication Scripts
>
>
> I have been trying to use a script that adds users to the database and
this
> is what I came up with, which DOES not work for some unknown reason:
>
> I have been having problems with your script, maybe its me, the hosting
> provider.. But I need to find out what is what.
>
> I have a DB called feminineforum and I already have a table of users with
> all their contact information already in there. It also has their usrnames
> and passwords already listed. The table name is tblmembers and here is the
> list of the column names:
>
> ID
>
> FirstName
>
> Initial
>
> LastName
>
> Address1
>
> Address2
>
> City State
>
> Zip
>
> HomePhone
>
> WorkPhone
>
> Fax
>
> Email
>
> Userid
>
> Password
>
> Registered
>
> Modified
>
> Modified_By
>
> I modified the table name, DB name and of course the sql statement. I was
> just trying to add a user with the following html form:
>
> <html>
>
> <head><title>User Admin Page : Add a User</title></head>
>
> <body bgcolor="#ffffff">
>
> <table bgcolor=#000000 valign=top align=center border=0><tr><td
>
> bgcolor=#000000><table cellpadding=4 bgcolor=#ffffff cellspacing=2
border=0>
>
> <Tr><th>Add a User</th></tr><tr><td>
>
> <FORM METHOD="post" ACTION="add.php">
>
> First Name: <INPUT TYPE=text MAXLENGTH=70 NAME="FirstName" SIZE=20><Br>
>
> Initial: <INPUT TYPE=text MAXLENGTH=70 NAME="Initial" SIZE=20><Br>
>
> Last Name: <INPUT TYPE=text MAXLENGTH=70 NAME="LirstName" SIZE=20><Br>
>
> Address1: <INPUT TYPE=text MAXLENGTH=70 NAME="Address1" SIZE=20><Br>
>
> Address2: <INPUT TYPE=text MAXLENGTH=70 NAME="Address2" SIZE=20><Br>
>
> City: <INPUT TYPE=text MAXLENGTH=70 NAME="City" SIZE=20><Br>
>
> State: <INPUT TYPE=text MAXLENGTH=70 NAME="State" SIZE=20><Br>
>
> Zip Code: <INPUT TYPE=text MAXLENGTH=70 NAME="Zip" SIZE=20><Br>
>
> Home Phone: <INPUT TYPE=text MAXLENGTH=70 NAME="HomePhone" SIZE=20><Br>
>
> Work Phone: <INPUT TYPE=text MAXLENGTH=70 NAME="WorkPhone" SIZE=20><Br>
>
> Fax Number: <INPUT TYPE=text MAXLENGTH=70 NAME="Fax" SIZE=20><Br>
>
> Email Address: <INPUT TYPE=text MAXLENGTH=70 NAME="Email" SIZE=20><Br>
>
> Username: <INPUT TYPE=text MAXLENGTH=70 NAME="UserId" SIZE=20><Br>
>
> Password: <Input Type=text Maxlength=70 Name="Password" Size=10><Br>
>
> Password for modification:<Input Type=password Maxlength=70
Name="password"
> Size=20>
>
> <INPUT TYPE=submit VALUE="Add"> <INPUT type=reset VALUE="Reset
Form"></form>
>
> </tr></td></table></tr></td></table>
>
> </body>
>
> </html>
>
> From what I can see the form looks fine... Here is the PHP script for the
> add.php:
>
> <?
>
> if($password=="modificationpasswdhere")
>
> {
>
> $ID = uniqid("ID");
>
> $db = mysql_connect("localhost","feminine","krmc33");
>
> mysql_select_db ("feminineforum");
>
> $result = mysql_query ("INSERT INTO tblmembers (ID, FirstName, Initial,
> LastName, Address1, Address2, City, State, Zip, HomePhone, WorkPhone, Fax,
> Email, UserId, Password)
>
> VALUES ('$ID', '$FirstName', '$Initial', '$LastName', '$Address1',
> '$Address2', '$City', '$State', '$Zip', '$HomePhone', '$WorkPhone',
'$Fax',
> '$Email', '$UserId', '$Password') ");
>
> if(!$result)
>
> {
>
> echo "<b>User not added:</b> ", mysql_error();
>
> exit;
>
> }
>
> if($result)
>
> {
>
> mysql_close($db);
>
> print "User <b>$UserId</b> added sucessfully!";
>
> }
>
> }
>
> else
>
> {
>
> print ("Wrong Password");
>
> }
>
> ?>
>
>
>
> Now when I go and add a user, I get "Wrong Password" why is it doing that?
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi,
Thanks to all that helped me out yesterday.
I'm using PHP with Apache on a MS Windows 98 box.
I would like to include a cc to another e-mail adresss when sending an
e-mail.
In addition I would like to *receive* and *also have the cc person receive*
this e-mail as well.
Right now, I am receiving an e-mail but not the other person using the
following script.
Using the variable and concatating the string to read:
$to.="[EMAIL PROTECTED]";
does not seem to work.
How do I go about configuring this script so that both of us - the *to*
person and the *cc* person can recieve the same e-mail?
The script:
................................
<?
$msg="Email sent from WWW site";
$msg.="Sender's name:\t$sender_name\n";
$msg.="Sender's email address:\t$sender_email\n";
$msg.="Message:\t$message\n\n";
$to="[EMAIL PROTECTED]";
$other_email = "[EMAIL PROTECTED]";
$subject="Web Site Feedback";
$mailheaders="From: My Website<>\n";
$mailheaders.="Cc: $other_email\n";
$mailheaders.="Reply to: $sender_email\n";
mail($to,$subject,$msg,$mailheaders);
?>
..........................
In the above script:
I received an e-mail but *not* the cc person - Linda.
However, when I hit "reply" to that e-mail, both:
[EMAIL PROTECTED]
and
[EMAIL PROTECTED]
showed up with Linda's as the cc.
O.K. That's half the riddle.
I'm trying to have both myself *and Linda* receive
an e-mail...not just me.
So I tried the following script by concatating the string
$to
...................................
<?
$msg="Email sent from WWW site";
$msg.="Sender's name:\t$sender_name\n";
$msg.="Sender's email address:\t$sender_email\n";
$msg.="Message:\t$message\n\n";
mailto:$to="[EMAIL PROTECTED]";
$to.="[EMAIL PROTECTED]";
$other_email = "[EMAIL PROTECTED]";
$subject="Web Site Feedback";
$mailheaders="From: My Website<>\n";
$mailheaders.="Cc: $other_email\n";
$mailheaders.="Reply to: $sender_email\n";
mail($to,$subject,$msg,$mailheaders);
?>
<HTML>
<HEAD<
<TITLE> Simple Feedback Form </TITLE>
</HEAD>
<BODY>
<H1> The following email has been sent: </H1>
<P><strong>Your Name:</strong><br>
<? echo "$sender_name"; ?>
<P><strong>Your email address:</strong><br>
<? echo "$sender_email"; ?>
<P><strong>Message: </strong> <br>
<? echo "$message"; ?>
</BODY>
</HTML>
.................................................
And after using *that* script neither of us receive an e-mail except that it
gets bounced back as:
[EMAIL PROTECTED]
So, it seems that somewhere the string in
$to
is getting fouled up.
Any ideas?
Many thanks for your time and help.
Kindest regards,
Tony Ritter
--- End Message ---
--- Begin Message ---
stick a comma or a semicolon in between (can't remember which)
$to.="; [EMAIL PROTECTED]";
-----Original Message-----
From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2001 18:59
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Adding *another* person to an e-mail *to:* address
Hi,
Thanks to all that helped me out yesterday.
I'm using PHP with Apache on a MS Windows 98 box.
I would like to include a cc to another e-mail adresss when sending an
e-mail.
In addition I would like to *receive* and *also have the cc person receive*
this e-mail as well.
Right now, I am receiving an e-mail but not the other person using the
following script.
Using the variable and concatating the string to read:
$to.="[EMAIL PROTECTED]";
does not seem to work.
How do I go about configuring this script so that both of us - the *to*
person and the *cc* person can recieve the same e-mail?
The script:
................................
<?
$msg="Email sent from WWW site";
$msg.="Sender's name:\t$sender_name\n";
$msg.="Sender's email address:\t$sender_email\n";
$msg.="Message:\t$message\n\n";
$to="[EMAIL PROTECTED]";
$other_email = "[EMAIL PROTECTED]";
$subject="Web Site Feedback";
$mailheaders="From: My Website<>\n";
$mailheaders.="Cc: $other_email\n";
$mailheaders.="Reply to: $sender_email\n";
mail($to,$subject,$msg,$mailheaders);
?>
..........................
In the above script:
I received an e-mail but *not* the cc person - Linda.
However, when I hit "reply" to that e-mail, both:
[EMAIL PROTECTED]
and
[EMAIL PROTECTED]
showed up with Linda's as the cc.
O.K. That's half the riddle.
I'm trying to have both myself *and Linda* receive
an e-mail...not just me.
So I tried the following script by concatating the string
$to
...................................
<?
$msg="Email sent from WWW site";
$msg.="Sender's name:\t$sender_name\n";
$msg.="Sender's email address:\t$sender_email\n";
$msg.="Message:\t$message\n\n";
mailto:$to="[EMAIL PROTECTED]";
$to.="[EMAIL PROTECTED]";
$other_email = "[EMAIL PROTECTED]";
$subject="Web Site Feedback";
$mailheaders="From: My Website<>\n";
$mailheaders.="Cc: $other_email\n";
$mailheaders.="Reply to: $sender_email\n";
mail($to,$subject,$msg,$mailheaders);
?>
<HTML>
<HEAD<
<TITLE> Simple Feedback Form </TITLE>
</HEAD>
<BODY>
<H1> The following email has been sent: </H1>
<P><strong>Your Name:</strong><br>
<? echo "$sender_name"; ?>
<P><strong>Your email address:</strong><br>
<? echo "$sender_email"; ?>
<P><strong>Message: </strong> <br>
<? echo "$message"; ?>
</BODY>
</HTML>
.................................................
And after using *that* script neither of us receive an e-mail except that it
gets bounced back as:
[EMAIL PROTECTED]
So, it seems that somewhere the string in
$to
is getting fouled up.
Any ideas?
Many thanks for your time and help.
Kindest regards,
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Ross,
As much I would like to say it works...no dice.
I tried:
$to.=";[EMAIL PROTECTED]"; (semicolon)
$to.=",[EMAIL PROTECTED]"; (comma)
$to.="[EMAIL PROTECTED]".",";
ended the first e-mail string with quotes then added a dot then put a comma
in between quotes. Then ended it with a semicolon.
Any other suggestions?
If you have a script with two e-mail addresses which can be received by two
different people please post the complete script.
Many thanks,
Tony Ritter
...................................................
----- Original Message -----
From: Ross Fleming <[EMAIL PROTECTED]>
To: Anthony Ritter <[EMAIL PROTECTED]>; PHP Windows mailing
list <[EMAIL PROTECTED]>
Sent: Monday, November 19, 2001 1:25 PM
Subject: RE: [PHP-WIN] Adding *another* person to an e-mail *to:* address
> stick a comma or a semicolon in between (can't remember which)
>
> $to.="; mailto:[EMAIL PROTECTED];
.................................
Ross Fleming <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> stick a comma or a semicolon in between (can't remember which)
>
> $to.="; mailto:[EMAIL PROTECTED];
....................................
> -----Original Message-----
> From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
> Sent: 19 November 2001 18:59
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Adding *another* person to an e-mail *to:* address
>
>
> Hi,
> Thanks to all that helped me out yesterday.
>
> I'm using PHP with Apache on a MS Windows 98 box.
>
> I would like to include a cc to another e-mail adresss when sending an
> e-mail.
>
> In addition I would like to *receive* and *also have the cc person
receive*
> this e-mail as well.
>
> Right now, I am receiving an e-mail but not the other person using the
> following script.
>
> Using the variable and concatating the string to read:
>
> $to.="[EMAIL PROTECTED]";
>
> does not seem to work.
>
> How do I go about configuring this script so that both of us - the *to*
> person and the *cc* person can recieve the same e-mail?
>
> The script:
> ................................
>
>
> <?
> $msg="Email sent from WWW site";
> $msg.="Sender's name:\t$sender_name\n";
> $msg.="Sender's email address:\t$sender_email\n";
> $msg.="Message:\t$message\n\n";
> $to="[EMAIL PROTECTED]";
> $other_email = "[EMAIL PROTECTED]";
> $subject="Web Site Feedback";
> $mailheaders="From: My Website<>\n";
> $mailheaders.="Cc: $other_email\n";
> $mailheaders.="Reply to: $sender_email\n";
> mail($to,$subject,$msg,$mailheaders);
> ?>
> ..........................
>
> In the above script:
> I received an e-mail but *not* the cc person - Linda.
>
> However, when I hit "reply" to that e-mail, both:
>
> [EMAIL PROTECTED]
> and
> [EMAIL PROTECTED]
>
> showed up with Linda's as the cc.
>
> O.K. That's half the riddle.
>
> I'm trying to have both myself *and Linda* receive
> an e-mail...not just me.
>
> So I tried the following script by concatating the string
> $to
> ...................................
>
>
> <?
> $msg="Email sent from WWW site";
> $msg.="Sender's name:\t$sender_name\n";
> $msg.="Sender's email address:\t$sender_email\n";
> $msg.="Message:\t$message\n\n";
> mailto:$to="[EMAIL PROTECTED]";
> $to.="[EMAIL PROTECTED]";
> $other_email = "[EMAIL PROTECTED]";
> $subject="Web Site Feedback";
> $mailheaders="From: My Website<>\n";
> $mailheaders.="Cc: $other_email\n";
> $mailheaders.="Reply to: $sender_email\n";
> mail($to,$subject,$msg,$mailheaders);
> ?>
>
> <HTML>
> <HEAD<
> <TITLE> Simple Feedback Form </TITLE>
> </HEAD>
> <BODY>
> <H1> The following email has been sent: </H1>
> <P><strong>Your Name:</strong><br>
> <? echo "$sender_name"; ?>
> <P><strong>Your email address:</strong><br>
> <? echo "$sender_email"; ?>
> <P><strong>Message: </strong> <br>
> <? echo "$message"; ?>
> </BODY>
> </HTML>
> .................................................
>
> And after using *that* script neither of us receive an e-mail except that
it
> gets bounced back as:
>
> [EMAIL PROTECTED]
>
> So, it seems that somewhere the string in
>
> $to
>
> is getting fouled up.
>
> Any ideas?
>
> Many thanks for your time and help.
>
> Kindest regards,
> Tony Ritter
>
>
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
--- End Message ---
--- Begin Message ---
I think you can send it as an extra header...
$mailheaders.="To: $otheremail\n";
I can't comment by saying used PHP to do this, but if you understand the
SMTP protocol then you'll know it should work.
Ross
-----Original Message-----
From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2001 22:42
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Adding *another* person to an e-mail *to:*
address
Ross,
As much I would like to say it works...no dice.
I tried:
$to.=";[EMAIL PROTECTED]"; (semicolon)
$to.=",[EMAIL PROTECTED]"; (comma)
$to.="[EMAIL PROTECTED]".",";
ended the first e-mail string with quotes then added a dot then put a comma
in between quotes. Then ended it with a semicolon.
Any other suggestions?
If you have a script with two e-mail addresses which can be received by two
different people please post the complete script.
Many thanks,
Tony Ritter
...................................................
----- Original Message -----
From: Ross Fleming <[EMAIL PROTECTED]>
To: Anthony Ritter <[EMAIL PROTECTED]>; PHP Windows mailing
list <[EMAIL PROTECTED]>
Sent: Monday, November 19, 2001 1:25 PM
Subject: RE: [PHP-WIN] Adding *another* person to an e-mail *to:* address
> stick a comma or a semicolon in between (can't remember which)
>
> $to.="; mailto:[EMAIL PROTECTED];
.................................
Ross Fleming <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> stick a comma or a semicolon in between (can't remember which)
>
> $to.="; mailto:[EMAIL PROTECTED];
....................................
> -----Original Message-----
> From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
> Sent: 19 November 2001 18:59
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Adding *another* person to an e-mail *to:* address
>
>
> Hi,
> Thanks to all that helped me out yesterday.
>
> I'm using PHP with Apache on a MS Windows 98 box.
>
> I would like to include a cc to another e-mail adresss when sending an
> e-mail.
>
> In addition I would like to *receive* and *also have the cc person
receive*
> this e-mail as well.
>
> Right now, I am receiving an e-mail but not the other person using the
> following script.
>
> Using the variable and concatating the string to read:
>
> $to.="[EMAIL PROTECTED]";
>
> does not seem to work.
>
> How do I go about configuring this script so that both of us - the *to*
> person and the *cc* person can recieve the same e-mail?
>
> The script:
> ................................
>
>
> <?
> $msg="Email sent from WWW site";
> $msg.="Sender's name:\t$sender_name\n";
> $msg.="Sender's email address:\t$sender_email\n";
> $msg.="Message:\t$message\n\n";
> $to="[EMAIL PROTECTED]";
> $other_email = "[EMAIL PROTECTED]";
> $subject="Web Site Feedback";
> $mailheaders="From: My Website<>\n";
> $mailheaders.="Cc: $other_email\n";
> $mailheaders.="Reply to: $sender_email\n";
> mail($to,$subject,$msg,$mailheaders);
> ?>
> ..........................
>
> In the above script:
> I received an e-mail but *not* the cc person - Linda.
>
> However, when I hit "reply" to that e-mail, both:
>
> [EMAIL PROTECTED]
> and
> [EMAIL PROTECTED]
>
> showed up with Linda's as the cc.
>
> O.K. That's half the riddle.
>
> I'm trying to have both myself *and Linda* receive
> an e-mail...not just me.
>
> So I tried the following script by concatating the string
> $to
> ...................................
>
>
> <?
> $msg="Email sent from WWW site";
> $msg.="Sender's name:\t$sender_name\n";
> $msg.="Sender's email address:\t$sender_email\n";
> $msg.="Message:\t$message\n\n";
> mailto:$to="[EMAIL PROTECTED]";
> $to.="[EMAIL PROTECTED]";
> $other_email = "[EMAIL PROTECTED]";
> $subject="Web Site Feedback";
> $mailheaders="From: My Website<>\n";
> $mailheaders.="Cc: $other_email\n";
> $mailheaders.="Reply to: $sender_email\n";
> mail($to,$subject,$msg,$mailheaders);
> ?>
>
> <HTML>
> <HEAD<
> <TITLE> Simple Feedback Form </TITLE>
> </HEAD>
> <BODY>
> <H1> The following email has been sent: </H1>
> <P><strong>Your Name:</strong><br>
> <? echo "$sender_name"; ?>
> <P><strong>Your email address:</strong><br>
> <? echo "$sender_email"; ?>
> <P><strong>Message: </strong> <br>
> <? echo "$message"; ?>
> </BODY>
> </HTML>
> .................................................
>
> And after using *that* script neither of us receive an e-mail except that
it
> gets bounced back as:
>
> [EMAIL PROTECTED]
>
> So, it seems that somewhere the string in
>
> $to
>
> is getting fouled up.
>
> Any ideas?
>
> Many thanks for your time and help.
>
> Kindest regards,
> Tony Ritter
>
>
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
See:
http://www.php.net/manual/en/function.mail.php
Pay particular attention to example #4.
Ross Fleming wrote:
>
> I think you can send it as an extra header...
>
> $mailheaders.="To: $otheremail\n";
>
> I can't comment by saying used PHP to do this, but if you understand the
> SMTP protocol then you'll know it should work.
>
> Ross
>
> -----Original Message-----
> From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
> Sent: 19 November 2001 22:42
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Adding *another* person to an e-mail *to:*
> address
>
> Ross,
> As much I would like to say it works...no dice.
>
> I tried:
> $to.=";[EMAIL PROTECTED]"; (semicolon)
>
> $to.=",[EMAIL PROTECTED]"; (comma)
>
> $to.="[EMAIL PROTECTED]".",";
> ended the first e-mail string with quotes then added a dot then put a comma
> in between quotes. Then ended it with a semicolon.
>
> Any other suggestions?
--
Craig Morrison
MTS Professional @ http://www.mtsprofessional.com/
A Win32 Email server that works for _you_.
--- End Message ---
--- Begin Message ---
Actually yes. I was just looking there myself...
/* recipients */
$recipient .= "Mary <[EMAIL PROTECTED]>" . ", " ; //note the comma
$recipient .= "Kelly <[EMAIL PROTECTED]>" . ", ";
$recipient .= "[EMAIL PROTECTED]";
Ross
-----Original Message-----
From: Craig Morrison [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2001 22:02
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Adding *another* person to an e-mail *to:*
address
See:
http://www.php.net/manual/en/function.mail.php
Pay particular attention to example #4.
Ross Fleming wrote:
>
> I think you can send it as an extra header...
>
> $mailheaders.="To: $otheremail\n";
>
> I can't comment by saying used PHP to do this, but if you understand the
> SMTP protocol then you'll know it should work.
>
> Ross
>
> -----Original Message-----
> From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
> Sent: 19 November 2001 22:42
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Adding *another* person to an e-mail *to:*
> address
>
> Ross,
> As much I would like to say it works...no dice.
>
> I tried:
> $to.=";[EMAIL PROTECTED]"; (semicolon)
>
> $to.=",[EMAIL PROTECTED]"; (comma)
>
> $to.="[EMAIL PROTECTED]".",";
> ended the first e-mail string with quotes then added a dot then
put a comma
> in between quotes. Then ended it with a semicolon.
>
> Any other suggestions?
--
Craig Morrison
MTS Professional @ http://www.mtsprofessional.com/
A Win32 Email server that works for _you_.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Ross Fleming wrote:
>
> Actually yes. I was just looking there myself...
> /* recipients */
> $recipient .= "Mary <[EMAIL PROTECTED]>" . ", " ; //note the comma
The concatenation operator "." is in use here. Is there a previous $recipient
that this can be added to?
> $recipient .= "Kelly <[EMAIL PROTECTED]>" . ", ";
> $recipient .= "[EMAIL PROTECTED]";
--
Craig Morrison
MTS Professional @ http://www.mtsprofessional.com/
A Win32 Email server that works for _you_.
--- End Message ---
--- Begin Message ---
yes
-----Original Message-----
From: Craig Morrison [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2001 22:11
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Adding *another* person to an e-mail *to:*
address
Ross Fleming wrote:
>
> Actually yes. I was just looking there myself...
> /* recipients */
> $recipient .= "Mary <[EMAIL PROTECTED]>" . ", " ; //note the comma
The concatenation operator "." is in use here. Is there a previous
$recipient
that this can be added to?
> $recipient .= "Kelly <[EMAIL PROTECTED]>" . ", ";
> $recipient .= "[EMAIL PROTECTED]";
--
Craig Morrison
MTS Professional @ http://www.mtsprofessional.com/
A Win32 Email server that works for _you_.
--- End Message ---
--- Begin Message ---
> > $recipient .= "Mary <[EMAIL PROTECTED]>" . ", " ; //note the comma
It is also worth pointing out that you need to include the space as
well.
$to = "[EMAIL PROTECTED],[EMAIL PROTECTED]" won't work, whereas
$to = "[EMAIL PROTECTED], [EMAIL PROTECTED]" will work.
Daniel.
--- End Message ---
--- Begin Message ---
I cannot figure out why the mysql_query is not working. Everything id done
according to Julie's book and I end up with the "Couldn't execute query"
error
Here is the script:
<?
if ((!$FirstName) || (!$LastName)) {
header("Location: http://localhost/show_addcontact.php");
exit;
} else {
session_start();
}
if ($valid != "yes") {
header("Location: http://localhost/contact_menu.php");
exit;
} else {
session_register('valid');
}
$db_name = "feminineforum";
$table_name = "tblmembers";
$connection = @mysql_connect("localhost", "feminine", "krmc33") or
die("Couldn't connect.");
$db = @mysql_select_db($db_name, $connection) or die("Couldn't select
database.");
$sql = "INSERT INTO tblmembers
ID, FirstName, Initial, LastName, Address1, Address2, City, State,
Zip, HomePhone, WorkPhone, Fax, Email, UserId, Password)
VALUES
('$FirstName', '$Initial', '$LastName', '$Address1', '$Address2', '$City',
'$State', '$Zip', '$HomePhone', '$WorkPhone', '$Fax', '$email',
'$UserId', '$Password')";
$result = @mysql_query ($sql, $connection) or die ("couldn't execute
query.");
?>
<HTML>
<HEAD>
<TITLE>Feminine Forum Contact Management System</TITLE>
</HEAD>
<BODY>
<h1>Feminine Forum Contact Management System</h1>
<h2><em>Add a Contact - Contact Added</em></h2>
<P>The following information was successfully added to <? echo
"$table_name"; ?></p>
<table cellspacing=3 cellpadding=5>
<tr>
<th>NAME & ADDRESS INFORMATION</th>
<th>OTHER CONTACT/PERSONAL INFORMATION</th>
</tr>
<tr>
<td valign=top>
<P><STRONG>First Name:</STRONG><BR>
<? echo "$FirstName"; ?></P>
<P><STRONG>Last Name:</STRONG><BR>
<? echo "$LastName"; ?></P>
<P><STRONG>Address Line 1:</STRONG><BR>
<? echo "$Address1"; ?></P>
<P><STRONG>Address Line 2:</STRONG><BR>
<? echo "$Address2"; ?></P>
<P><STRONG>City:</STRONG><BR>
<? echo "$City"; ?></P>
<P><STRONG>Zip/Postal Code:</STRONG><BR>
<? echo "$Zip";
?>
</P>
</td>
<td valign=top>
<P><STRONG>Home Telephone Number:</STRONG><BR>
<? echo "$prim_tel"; ?></P>
<P><STRONG>Work Telephone Number:</STRONG><BR>
<? echo "$sec_tel"; ?></P>
<P><STRONG>E-mail Address:</STRONG><BR>
<? echo "$email"; ?></P>
<P><STRONG>UserId</STRONG><BR>
<? echo "$UserId"; ?></P>
<P><STRONG>Password</STRONG><BR>
<? echo "$Password"; ?></P>
</td>
</tr>
<tr>
<td align=center colspan=2><br>
<p><a href="contact_menu.php">Return to Main Menu</a></p>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
--- End Message ---
--- Begin Message ---
-----Original Message-----
From: Todd Williamsen [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2001 20:00
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Julie Meloni's Modified Contact management script
I cannot figure out why the mysql_query is not working. Everything id done
according to Julie's book and I end up with the "Couldn't execute query"
error
Here is the script:
<?
if ((!$FirstName) || (!$LastName)) {
header("Location: http://localhost/show_addcontact.php");
exit;
} else {
session_start();
}
if ($valid != "yes") {
header("Location: http://localhost/contact_menu.php");
exit;
} else {
session_register('valid');
}
$db_name = "feminineforum";
$table_name = "tblmembers";
$connection = @mysql_connect("localhost", "feminine", "krmc33") or
die("Couldn't connect.");
$db = @mysql_select_db($db_name, $connection) or die("Couldn't select
database.");
$sql = "INSERT INTO tblmembers
ID, FirstName, Initial, LastName, Address1, Address2, City, State,
Zip, HomePhone, WorkPhone, Fax, Email, UserId, Password)
VALUES
('$FirstName', '$Initial', '$LastName', '$Address1', '$Address2', '$City',
'$State', '$Zip', '$HomePhone', '$WorkPhone', '$Fax', '$email',
'$UserId', '$Password')";
$result = @mysql_query ($sql, $connection) or die ("couldn't execute
query.");
?>
<HTML>
<HEAD>
<TITLE>Feminine Forum Contact Management System</TITLE>
</HEAD>
<BODY>
<h1>Feminine Forum Contact Management System</h1>
<h2><em>Add a Contact - Contact Added</em></h2>
<P>The following information was successfully added to <? echo
"$table_name"; ?></p>
<table cellspacing=3 cellpadding=5>
<tr>
<th>NAME & ADDRESS INFORMATION</th>
<th>OTHER CONTACT/PERSONAL INFORMATION</th>
</tr>
<tr>
<td valign=top>
<P><STRONG>First Name:</STRONG><BR>
<? echo "$FirstName"; ?></P>
<P><STRONG>Last Name:</STRONG><BR>
<? echo "$LastName"; ?></P>
<P><STRONG>Address Line 1:</STRONG><BR>
<? echo "$Address1"; ?></P>
<P><STRONG>Address Line 2:</STRONG><BR>
<? echo "$Address2"; ?></P>
<P><STRONG>City:</STRONG><BR>
<? echo "$City"; ?></P>
<P><STRONG>Zip/Postal Code:</STRONG><BR>
<? echo "$Zip";
?>
</P>
</td>
<td valign=top>
<P><STRONG>Home Telephone Number:</STRONG><BR>
<? echo "$prim_tel"; ?></P>
<P><STRONG>Work Telephone Number:</STRONG><BR>
<? echo "$sec_tel"; ?></P>
<P><STRONG>E-mail Address:</STRONG><BR>
<? echo "$email"; ?></P>
<P><STRONG>UserId</STRONG><BR>
<? echo "$UserId"; ?></P>
<P><STRONG>Password</STRONG><BR>
<? echo "$Password"; ?></P>
</td>
</tr>
<tr>
<td align=center colspan=2><br>
<p><a href="contact_menu.php">Return to Main Menu</a></p>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
You're missing an open parenthesis in the insert part...
$sql = "INSERT INTO tblmembers ( ID, etc....
Ross
-----Original Message-----
From: Todd Williamsen [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2001 20:00
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Julie Meloni's Modified Contact management script
I cannot figure out why the mysql_query is not working. Everything id done
according to Julie's book and I end up with the "Couldn't execute query"
error
Here is the script:
<?
if ((!$FirstName) || (!$LastName)) {
header("Location: http://localhost/show_addcontact.php");
exit;
} else {
session_start();
}
if ($valid != "yes") {
header("Location: http://localhost/contact_menu.php");
exit;
} else {
session_register('valid');
}
$db_name = "feminineforum";
$table_name = "tblmembers";
$connection = @mysql_connect("localhost", "feminine", "krmc33") or
die("Couldn't connect.");
$db = @mysql_select_db($db_name, $connection) or die("Couldn't select
database.");
$sql = "INSERT INTO tblmembers
ID, FirstName, Initial, LastName, Address1, Address2, City, State,
Zip, HomePhone, WorkPhone, Fax, Email, UserId, Password)
VALUES
('$FirstName', '$Initial', '$LastName', '$Address1', '$Address2', '$City',
'$State', '$Zip', '$HomePhone', '$WorkPhone', '$Fax', '$email',
'$UserId', '$Password')";
$result = @mysql_query ($sql, $connection) or die ("couldn't execute
query.");
?>
<HTML>
<HEAD>
<TITLE>Feminine Forum Contact Management System</TITLE>
</HEAD>
<BODY>
<h1>Feminine Forum Contact Management System</h1>
<h2><em>Add a Contact - Contact Added</em></h2>
<P>The following information was successfully added to <? echo
"$table_name"; ?></p>
<table cellspacing=3 cellpadding=5>
<tr>
<th>NAME & ADDRESS INFORMATION</th>
<th>OTHER CONTACT/PERSONAL INFORMATION</th>
</tr>
<tr>
<td valign=top>
<P><STRONG>First Name:</STRONG><BR>
<? echo "$FirstName"; ?></P>
<P><STRONG>Last Name:</STRONG><BR>
<? echo "$LastName"; ?></P>
<P><STRONG>Address Line 1:</STRONG><BR>
<? echo "$Address1"; ?></P>
<P><STRONG>Address Line 2:</STRONG><BR>
<? echo "$Address2"; ?></P>
<P><STRONG>City:</STRONG><BR>
<? echo "$City"; ?></P>
<P><STRONG>Zip/Postal Code:</STRONG><BR>
<? echo "$Zip";
?>
</P>
</td>
<td valign=top>
<P><STRONG>Home Telephone Number:</STRONG><BR>
<? echo "$prim_tel"; ?></P>
<P><STRONG>Work Telephone Number:</STRONG><BR>
<? echo "$sec_tel"; ?></P>
<P><STRONG>E-mail Address:</STRONG><BR>
<? echo "$email"; ?></P>
<P><STRONG>UserId</STRONG><BR>
<? echo "$UserId"; ?></P>
<P><STRONG>Password</STRONG><BR>
<? echo "$Password"; ?></P>
</td>
</tr>
<tr>
<td align=center colspan=2><br>
<p><a href="contact_menu.php">Return to Main Menu</a></p>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I'm a new PHP user, and can't find any help anywhere about being able to
reference an existing session from a website (IIS/ASP) to a IIS/PHP.
Basically, I have PHP and MySQL running on a Win2000 pc, but also have ASP
running as the primary language for a website. We're integrating PHP and
need to read Session variables from the ASP site.
Can some help me??
Thanks,
marco
--- End Message ---
--- Begin Message ---
Here it is.... I get the error "cannot execute query" so there is
something wrong with the SQL and I cannot figure it out...
<?
if ((!$FirstName) || (!$LastName)) {
header("Location: http://www.feminineforum.com/admin/pick_modcontact.php");
exit;
} else {
session_start();
}
if ($valid != "yes") {
header("Location: http://www.feminineforum.com/admin/contact_menu.php");
exit;
} else {
session_register('valid');
}
$db_name = "feminineforum";
$table_name = "tblmembers";
$connection = @mysql_connect ("localhost", "feminine", "krmc33") or die
("Couldn't connect.");
$db = @mysql_select_db ($db_name, $connection) or die("Couldn't select
database.");
$sql = "UPDATE $table_name
SET
FirstName = \"$FirstName\",
LastName = \"$LastName\",
Address1 = \"$Address1\",
Address2 = \"$Address2\",
City = \"$City\",
State = \"$State\",
Zip = \"$Zip\",
HomePhone = \"$HomePhone\",
WorkPhone = \"$WorkPhone\",
Fax = \"$Fax\",
Email = \"$Email\",
UserId = \"$UserId\",
Password = \"$Password\",
WHERE id = \"$ID\"
";
$result = @mysql_query($sql, $connection) or die ("Couldn't execute
query.");
--- End Message ---
--- Begin Message ---
try using single quotes
Jim
----- Original Message -----
From: "Todd Williamsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 19, 2001 2:30 PM
Subject: [PHP-WIN] new problem... problem with Query...
> Here it is.... I get the error "cannot execute query" so there is
> something wrong with the SQL and I cannot figure it out...
>
> <?
>
> if ((!$FirstName) || (!$LastName)) {
> header("Location:
http://www.feminineforum.com/admin/pick_modcontact.php");
> exit;
>
> } else {
>
> session_start();
>
> }
>
> if ($valid != "yes") {
> header("Location: http://www.feminineforum.com/admin/contact_menu.php");
> exit;
>
> } else {
>
> session_register('valid');
>
> }
>
>
> $db_name = "feminineforum";
> $table_name = "tblmembers";
>
> $connection = @mysql_connect ("localhost", "feminine", "krmc33") or die
> ("Couldn't connect.");
>
> $db = @mysql_select_db ($db_name, $connection) or die("Couldn't select
> database.");
>
> $sql = "UPDATE $table_name
> SET
> FirstName = \"$FirstName\",
> LastName = \"$LastName\",
> Address1 = \"$Address1\",
> Address2 = \"$Address2\",
> City = \"$City\",
> State = \"$State\",
> Zip = \"$Zip\",
> HomePhone = \"$HomePhone\",
> WorkPhone = \"$WorkPhone\",
> Fax = \"$Fax\",
> Email = \"$Email\",
> UserId = \"$UserId\",
> Password = \"$Password\",
> WHERE id = \"$ID\"
> ";
>
> $result = @mysql_query($sql, $connection) or die ("Couldn't execute
> query.");
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--- End Message ---
--- Begin Message ---
Hi,
If you mysql connection is the only one you're trying to maintain,
I suggest you try
$result = @mysql_query($sql) or die ("Couldn't execute
query.");
e.g. without passing the $connection parameter. Also, try using mysql_error
to get the actual error message.
HTH!
Olivier
At 16:30 2001-11-19 -0600, Todd Williamsen wrote:
>Here it is.... I get the error "cannot execute query" so there is
>something wrong with the SQL and I cannot figure it out...
>
><?
>
>if ((!$FirstName) || (!$LastName)) {
> header("Location: http://www.feminineforum.com/admin/pick_modcontact.php");
> exit;
>
>} else {
>
> session_start();
>
>}
>
>if ($valid != "yes") {
> header("Location: http://www.feminineforum.com/admin/contact_menu.php");
> exit;
>
>} else {
>
> session_register('valid');
>
>}
>
>
>$db_name = "feminineforum";
>$table_name = "tblmembers";
>
>$connection = @mysql_connect ("localhost", "feminine", "krmc33") or die
>("Couldn't connect.");
>
>$db = @mysql_select_db ($db_name, $connection) or die("Couldn't select
>database.");
>
>$sql = "UPDATE $table_name
> SET
> FirstName = \"$FirstName\",
> LastName = \"$LastName\",
> Address1 = \"$Address1\",
> Address2 = \"$Address2\",
> City = \"$City\",
> State = \"$State\",
> Zip = \"$Zip\",
> HomePhone = \"$HomePhone\",
> WorkPhone = \"$WorkPhone\",
> Fax = \"$Fax\",
> Email = \"$Email\",
> UserId = \"$UserId\",
> Password = \"$Password\",
> WHERE id = \"$ID\"
>";
>
>$result = @mysql_query($sql, $connection) or die ("Couldn't execute
>query.");
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
hi - anyone know why i am having problems with PHP scripts on my ArGoSoft Mail Server
- it's coming up with these despite all configuration checks ..(it's an intranet
server by the way)
Warning: Couldn't open stream {localhost:110}INBOX in D:\...\includes
Fatal error: Maximum execution time of 30 seconds exceeded in d:\program files\apache
group\apache\htdocs\xxxx.php on line 5
Any help here would be great coz i've no idea what open stream is all about...
Thnx.
----------
Get a free, personalised email address at http://another.com
TXT ALRT! Stop wasting money now. Send FREE, personalised txt
msgs to UK mobile phones from http://another.com
--- End Message ---