php-windows Digest 20 Jan 2002 15:39:45 -0000 Issue 961
Topics (messages 11524 through 11526):
New To PHP need help with mail
11524 by: Burrito
11526 by: Ross Fleming
load data infile problem
11525 by: rop30999
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 ---
I have a good cold fusion background but am now trying to tackle a new
beast. I really only need to have e-mail functionality on an action page
from a form page. Here is exactly what I need.
I have a form page that asks questions like:
<form name="MyForm" action="formaction.php" method="post">
<input type="text" name="yourname">
<input type="radio" name="yourgender" value="male">
<input type="radio" name="yourgender" value="female">
<select name="hobby">
<option value="riding bikes">riding bikes</option>
<option value="skiing">riding bikes</option>
<option value="rafting">riding bikes</option>
</select>
<input type="submit" value="click here">
</form>
I need to be able to e-mail the results of that form page to this address
[EMAIL PROTECTED] My server name is mail.mysmtpserver.com. I know I'm asking
a biggun' here, but with CF that would be a breeze so I'm assuming php can't
be much harder. Can someone hook me up plz?
thx in advance for your time,
Burrito
--- End Message ---
--- Begin Message ---
Asuuming you have PHP setup already, edit your PHP.ini file. Change your
mail settings in it to:
[mail function]
; For Win32 only.
SMTP= mail.mysmtpserver.com ; for Win32 only
; For Win32 only.
sendmail_from= [EMAIL PROTECTED] ; for Win32 only
and save it.
Then, in the formaction.php page, use the mail(); function. Full details
can be found here http://www.php.net/manual/en/function.mail.php
You should get the hang of it.
Good luck
Ross
-----Original Message-----
From: Burrito [mailto:[EMAIL PROTECTED]]
Sent: 19 January 2002 20:56
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] New To PHP need help with mail
I have a good cold fusion background but am now trying to tackle a new
beast. I really only need to have e-mail functionality on an action page
from a form page. Here is exactly what I need.
I have a form page that asks questions like:
<form name="MyForm" action="formaction.php" method="post">
<input type="text" name="yourname">
<input type="radio" name="yourgender" value="male">
<input type="radio" name="yourgender" value="female">
<select name="hobby">
<option value="riding bikes">riding bikes</option>
<option value="skiing">riding bikes</option>
<option value="rafting">riding bikes</option>
</select>
<input type="submit" value="click here">
</form>
I need to be able to e-mail the results of that form page to this address
[EMAIL PROTECTED] My server name is mail.mysmtpserver.com. I know I'm asking
a biggun' here, but with CF that would be a breeze so I'm assuming php can't
be much harder. Can someone hook me up plz?
thx in advance for your time,
Burrito
--
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 have a called file cats.txt which count data that were solitary of a DB
Access.
I need to export these data for a table 'cats' inside of a DB done in MySql.
In MySql I can execute this procedure in the following way:
Load data local infile "gatos.txt"
into table gatos
fields
terminated by ','
enclosed by '"'
(Id, Nome, Raça);
I need to know how I can accomplish this same operation but using PHP
Thank you
Paulo
--- End Message ---