[WSG] PHP Help
Hi. can Jason send me his new e-mail address off line.maybe he has changed it. try to send messages, but it rejects it. thanks. Marvin. ps: wish there was a php list in australia. i am having issues, and will have to try to google to try and find an issue to my problem. not liking the information from the previous form in the database. if any one can help me out. let me know. Marvin. Join My Blind-Aid group at : http://groups.yahoo.com/groups/Blind-Aid To join this group , send a blank message to: blind-aid-subscr...@yahoogroups.com *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] PHP Help Again
Sorry for intrusion... but I think you have a bug with " $subject=$_POST['$subject']; $message=$_POST['$message']; " You have no subject and message variable posted with your form and "$_POST['$subject']" isn't php valid synthax (quoted variable???). Your php error message just told you that php doesn't know what you mean by $subject and $message just because "he" don't find them in your code before to use it (well he found a buggy stuff). Try to replace "$subject=$_POST['$subject']; $message=$_POST['$message'];" by '$subject = "Testing email"; $message = "This is a test email message!";'. This can help you to test your installation if you needed to. good luck! Fabien. Le 17/12/11 08:50, Marvin Hunkin a écrit : Hi. could david please let me know if he received my e-mails the other day. if not, then will paste the following message. if any one can help me off list. Thanks. Marvin. Hi. well sorry, forggot about that. well if any one can help me with my smtp, and also using windows 7 professional 32 bit, and using wamp server 2.2, and using mozilla thunderbird as my mail client. also, how to format the message. can any one help? will paste my html form and the php code and the mozilla firefox browser window below. Marvin. Student Details Parents And Citizens Student School Survey Firstname: Lastname: Date Of Birth: Current Year At School: Number Of Siblings: Home Work: Entertainment: Computer: Family: Friends: Student Details:"; echo "Great! Thanks ".$firstname." for responding to our survey."; echo "Name: ".$firstname." $lastname"; echo "Date Of Birth: $dateofbirth"; echo "Current School Year: $currentyear"; echo "Number Of Siblings: $familynumber"; echo " Subject: $subject = '$firstname, $lastname survey results'"; echo "Message: $message = '$firstname, $lastname, $dateofbirth, $currentyear, $familynumber, $homework, $entertainment, $computer, $family, $friends'"; $to='startrekc...@gmail.com'; $subject = "$firstname, $lastname"; mail($to, $subject, $message); ?> http://localhost/SixthPHP/Data.php table with 5 columns and 4 rows ( ! ) Notice: Undefined index: $subject in C:\wamp\www\SixthPHP\Data.php on line 12 Call Stack # Time Memory Function Location 1 0.0006 379792 {main}( ) ..\Data.php:0 table end table with 5 columns and 4 rows ( ! ) Notice: Undefined index: $message in C:\wamp\www\SixthPHP\Data.php on line 13 Call Stack # Time Memory Function Location 1 0.0006 379792 {main}( ) ..\Data.php:0 table end Student Details: Great! Thanks Marvin for responding to our survey. Name: Marvin Hunkin Date Of Birth: 13/02/1965 Current School Year: 12 Number Of Siblings: 3 Subject: = 'Marvin, Hunkin survey results' Message: = 'Marvin, Hunkin, 13/02/1965, 12, 3, 30, 88, 95, 33, 102' table with 5 columns and 5 rows ( ! ) Warning: mail() [ function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\SixthPHP\Data.php on line 24 Call Stack # Time Memory Function Location 1 0.0006 379792 {main}( ) ..\Data.php:0 2 0.0013 380832 mail ( ) ..\Data.php:24 table end ps: so how to fix the problems, maybe how to get the date for say Febuary 13, 1965, can any one help me out. maybe e-mail me off list via startrekc...@gmail.com if not on topic. --- In blindwebb...@yahoogroups.com, Parham Doustdar wrote: > > Marvin, > > You cannot attach files to your emails when you're sending an email to > this list. But regardless of your code: > > 1. Setting up your SMTP is not a PHP issue, it depends on your operating > system. > 2. I expect you're using Windows. As far as I know, there is not an easy > solution about running an SMTP server on Windows. What I did was to find > someone who would let me play with the SMTP server running on his Linux box. > > But of course, if anyone has done this on Windows, I'd appreciate it if > they could step forward and help you. > > Good luck, > Parham > > On 12/16/2011 2:27 PM, Marvin Hunkin wrote: > > > > Hi. > > can some one help me to set up my smtp. > > also, not liking some of my variables. > > new to php and learning this. > > can any one help me to get the script working, and also to format it. > > i need to havea e-mail message in the form, and also need headings, or > > information or labels for each of the information. > > can any one help me? > > will atatch my code, a html file and my php script. > > new to learning php. > > Marvin. > > > > [Non-text portions of this message have been removed] > > > > > > > [Non-text portions of this message have been removed] > hI *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *
Re: [WSG] PHP Help Again
Ok, as many have suggested, these discussions are definitely off topic. Marvin, please confine posts to web standards related topics Everyone else, if replying, do it offlist. Apologies all for the recent lack of list management! Thanks Russ On 17/12/2011, at 6:50 PM, Marvin Hunkin wrote: > Hi. > could david please let me know if he received my e-mails the other day. > if not, then will paste the following message. > if any one can help me off list. > Thanks. > Marvin. > > Hi. > well sorry, forggot about that. > well if any one can help me with my smtp, and also using windows 7 > professional 32 bit, and using wamp server 2.2, and using mozilla thunderbird > as my mail client. > also, how to format the message. > can any one help? > will paste my html form and the php code and the mozilla firefox browser > window below. > Marvin. > > > > Student Details > > > Parents And Citizens Student School Survey > > Firstname: > Lastname: > Date Of Birth: > Current Year At School: > Number Of Siblings: > Home Work: > Entertainment: > Computer: > Family: > Friends: > > > > > > $firstname=$_POST['firstname']; > $lastname=$_POST['lastname']; > $dateofbirth=$_POST['dateofbirth']; > $currentyear=$_POST['currentyear']; > $familynumber=$_POST['familynumber']; > $homework=$_POST['homework']; > $entertainment=$_POST['entertainment']; > $computer=$_POST['computer']; > $family=$_POST['family']; > $friends=$_POST['friends']; > $subject=$_POST['$subject']; > $message=$_POST['$message']; > echo "Student Details:"; > echo "Great! Thanks ".$firstname." for responding to our survey."; > echo "Name: ".$firstname." $lastname"; > echo "Date Of Birth: $dateofbirth"; > echo "Current School Year: $currentyear"; > echo "Number Of Siblings: $familynumber"; > echo " Subject: $subject = '$firstname, $lastname survey results'"; > echo "Message: $message = '$firstname, $lastname, $dateofbirth, > $currentyear, $familynumber, $homework, $entertainment, $computer, $family, > $friends'"; > $to='startrekc...@gmail.com'; > $subject = "$firstname, $lastname"; > mail($to, $subject, $message); > ?> > > http://localhost/SixthPHP/Data.php > > table with 5 columns and 4 rows > ( ! ) Notice: Undefined index: $subject in C:\wamp\www\SixthPHP\Data.php on > line 12 > Call Stack > # > Time > Memory > Function > Location > 1 > 0.0006 > 379792 > {main}( ) > ..\Data.php:0 > table end > > table with 5 columns and 4 rows > ( ! ) Notice: Undefined index: $message in C:\wamp\www\SixthPHP\Data.php on > line 13 > Call Stack > # > Time > Memory > Function > Location > 1 > 0.0006 > 379792 > {main}( ) > ..\Data.php:0 > table end > > Student Details: > > Great! Thanks Marvin for responding to our survey. > > Name: Marvin Hunkin > > Date Of Birth: 13/02/1965 > > Current School Year: 12 > > Number Of Siblings: 3 > > Subject: = 'Marvin, Hunkin survey results' > > Message: = 'Marvin, Hunkin, 13/02/1965, 12, 3, 30, 88, 95, 33, 102' > > table with 5 columns and 5 rows > ( ! ) Warning: mail() [ > function.mail]: > Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" > and "smtp_port" setting in php.ini or use ini_set() in > C:\wamp\www\SixthPHP\Data.php > on line 24 > Call Stack > # > Time > Memory > Function > Location > 1 > 0.0006 > 379792 > {main}( ) > ..\Data.php:0 > 2 > 0.0013 > 380832 > mail > ( ) > ..\Data.php:24 > table end > > ps: so how to fix the problems, maybe how to get the date for say Febuary 13, > 1965, can any one help me out. maybe e-mail me off list via > startrekc...@gmail.com if not on topic. > --- In blindwebb...@yahoogroups.com, Parham Doustdar wrote: >> >> Marvin, >> >> You cannot attach files to your emails when you're sending an email to >> this list. But regardless of your code: >> >> 1. Setting up your SMTP is not a PHP issue, it depends on your operating >> system. >> 2. I expect you're using Windows. As far as I know, there is not an easy >> solution about running an SMTP server on Windows. What I did was to find >> someone who would let me play with the SMTP server running on his Linux box. >> >> But of course, if anyone has done this on Windows, I'd appreciate it if >> they could step forward and help you. >> >> Good luck, >> Parham >> >> On 12/16/2011 2:27 PM, Marvin Hunkin wrote: >>> >>> Hi. >>> can some one help me to set up my smtp. >>> also, not liking some of my variables. >>> new to php and learning this. >>> can any one help me to get the script working, and also to format it. >>> i need to havea e-mail message in the form, and also need headings, or >>> information or labels for each of the information. >>> can any one help me? >>> will atatch my code, a html file and my php script. >>> new to learning php. >>> Marvin. >>> >>> [Non-text portions of this message have been removed] >>> >>> >> >> >> [Non-text portions of this message have been removed] >> > hI > > > *** > List Guidelines
[WSG] PHP Help Again
Hi. could david please let me know if he received my e-mails the other day. if not, then will paste the following message. if any one can help me off list. Thanks. Marvin. Hi. well sorry, forggot about that. well if any one can help me with my smtp, and also using windows 7 professional 32 bit, and using wamp server 2.2, and using mozilla thunderbird as my mail client. also, how to format the message. can any one help? will paste my html form and the php code and the mozilla firefox browser window below. Marvin. Student Details Parents And Citizens Student School Survey Firstname: Lastname: Date Of Birth: Current Year At School: Number Of Siblings: Home Work: Entertainment: Computer: Family: Friends: Student Details:"; echo "Great! Thanks ".$firstname." for responding to our survey."; echo "Name: ".$firstname." $lastname"; echo "Date Of Birth: $dateofbirth"; echo "Current School Year: $currentyear"; echo "Number Of Siblings: $familynumber"; echo " Subject: $subject = '$firstname, $lastname survey results'"; echo "Message: $message = '$firstname, $lastname, $dateofbirth, $currentyear, $familynumber, $homework, $entertainment, $computer, $family, $friends'"; $to='startrekc...@gmail.com'; $subject = "$firstname, $lastname"; mail($to, $subject, $message); ?> http://localhost/SixthPHP/Data.php table with 5 columns and 4 rows ( ! ) Notice: Undefined index: $subject in C:\wamp\www\SixthPHP\Data.php on line 12 Call Stack # Time Memory Function Location 1 0.0006 379792 {main}( ) ..\Data.php:0 table end table with 5 columns and 4 rows ( ! ) Notice: Undefined index: $message in C:\wamp\www\SixthPHP\Data.php on line 13 Call Stack # Time Memory Function Location 1 0.0006 379792 {main}( ) ..\Data.php:0 table end Student Details: Great! Thanks Marvin for responding to our survey. Name: Marvin Hunkin Date Of Birth: 13/02/1965 Current School Year: 12 Number Of Siblings: 3 Subject: = 'Marvin, Hunkin survey results' Message: = 'Marvin, Hunkin, 13/02/1965, 12, 3, 30, 88, 95, 33, 102' table with 5 columns and 5 rows ( ! ) Warning: mail() [ function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\SixthPHP\Data.php on line 24 Call Stack # Time Memory Function Location 1 0.0006 379792 {main}( ) ..\Data.php:0 2 0.0013 380832 mail ( ) ..\Data.php:24 table end ps: so how to fix the problems, maybe how to get the date for say Febuary 13, 1965, can any one help me out. maybe e-mail me off list via startrekc...@gmail.com if not on topic. --- In blindwebb...@yahoogroups.com, Parham Doustdar wrote: > > Marvin, > > You cannot attach files to your emails when you're sending an email to > this list. But regardless of your code: > > 1. Setting up your SMTP is not a PHP issue, it depends on your operating > system. > 2. I expect you're using Windows. As far as I know, there is not an easy > solution about running an SMTP server on Windows. What I did was to find > someone who would let me play with the SMTP server running on his Linux box. > > But of course, if anyone has done this on Windows, I'd appreciate it if > they could step forward and help you. > > Good luck, > Parham > > On 12/16/2011 2:27 PM, Marvin Hunkin wrote: > > > > Hi. > > can some one help me to set up my smtp. > > also, not liking some of my variables. > > new to php and learning this. > > can any one help me to get the script working, and also to format it. > > i need to havea e-mail message in the form, and also need headings, or > > information or labels for each of the information. > > can any one help me? > > will atatch my code, a html file and my php script. > > new to learning php. > > Marvin. > > > > [Non-text portions of this message have been removed] > > > > > > > [Non-text portions of this message have been removed] > hI *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***