[PHP] Automatic Form processor

2004-10-19 Thread Lone Wolf
I've googled for this one and so far have come up empty handed.

I am in need of a PHP script that will take any POST data and parse it into
a file and email it out to users.  The data needs to be completely
changeable, whether I have 20 items or 400, I just want to throw everything
to the script via POST and let it take the POST information and manipulate
it.

IE:

form method=post action=parse.php
input type=text name=question_1
input type=text name=question_2
input type=text name=question_3
input type=text name=question_4
input type=text name=question_5
...
input type=text name=question_69
input type=text name=question_70

input type=submit

---
//parse.php

?php
.
//append to file

//create mail body
...
//mail to recipients
...
?

Thanks,
Robert

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] List of Users

2004-09-02 Thread Lone Wolf
Why not just shell it out?

?php
$users = passthru('ls /var/spool/mail');
echo $users;
?

Robert


 -Original Message-
 From: Jesus [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 02, 2004 11:56 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] List of Users
 
 
 Hi need some clue about of how a can get a list of the all 
 the user in may server I use the imap functions to work with 
 the mailboxes but in some point I need show up a list of the 
 all the user but I cant find a function to get all the user
 
 
 thank for any help
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: mail() function problem

2004-09-01 Thread Lone Wolf
What you need to do is set your SMTP server inside the php.ini file...


[mail function] 
SMTP = smtp.server.com  ; for win32 only 
sendmail_from = [EMAIL PROTECTED] ; for win32 only 
;sendmail_path = ;for unix only, may supply arguments as well ; (default is
sendmail -t) 

The test string I used to make sure my example worked: 
?php
print mail ('[EMAIL PROTECTED]', 
'No need for reply -- PHP test!', /* subject */
hi JohnnLine 2n);/* body*/
?

Robert

 -Original Message-
 From: Dre [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 01, 2004 6:48 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: mail() function problem
 
 
 Sorry .. but I'm really so new at this
 I'm using Apache Server on a MS Windows XP Pro. OS, and I'm 
 trying to send a mail through a form .. what do I need to 
 install or configure to be able to do this.
 
 thanks in advance
 
 
 Dre [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
  I'm using an Apache server .. doesn't it come with a 
 sendmail program 
  ?? I really don't know
 
  Jasper Howard [EMAIL PROTECTED] wrote in message 
  news:[EMAIL PROTECTED]
   do you have a sendmail program on your testing server?
  
   --
  
  
   --
   Jasper Howard :: Database Administration
   Velocity7
   1.530.470.9292
   http://www.Velocity7.com/
   --
   Dre [EMAIL PROTECTED] wrote in message 
   news:[EMAIL PROTECTED]
Hi
I was trying to use the mail() function, but it did not work, 
maybe
   because
of some settings problem or something that I can't figure out
   
I went online and tried to execute the following 
//===
  ?php
 $from = $_POST['from'];
 $subject = $_POST['subject'];
 $content = $_POST['content'];
 $to = [EMAIL PROTECTED];
   $headers = From:.$from;
 if(mail($to, $subject, $content, From: $from)) {
echosent;
}
 else{ echo not sent;
 }
 ?
//===
the variable values sent from a Form in another and 
 they are sent
   correctly
   
but I keep having this error 
//===
Warning: 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:\Program 
Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line
  194
//===
   
   
my php.ini settings for the mail function are
   
//=
[mail function]
; For Win32 only.
SMTP = localhost
   
smtp_port = 25
sendmail_from = [EMAIL PROTECTED] //=
   
thanks in advance
Dre,
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php