 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
mickeden
Joined: 24 Apr 2008 Posts: 3
|
Posted: Thu Apr 24, 2008 3:53 pm Post subject: Quickform values to email |
|
|
Hi,
I'm a noob to using oop and PEAR and have tied myself up in knots trying to work out the way ahead. Im trying to use QuickForm (and the Tableless Render) to take the input from a contact form and generate an email. form is built and displays/validates correctly but nowhere can i find out how to grab the input and put it into a variable (although I assume once it's validated it is placed in a variable) I would normally take the $name=$_POST['name']; then place $name into my message then use the mail() to send the message..all the examples i cand find deal with putting the input into a db but nothing to to point me in right direction regards email. Any tips/points would be appreciated!
Mick |
|
| Back to top |
|
 |
mickeden
Joined: 24 Apr 2008 Posts: 3
|
Posted: Thu Apr 24, 2008 6:36 pm Post subject: |
|
|
ok, solved this one...discovered getSubmitValues() function and will use that to build the email.
$dork='me';
Got to say I'm pretty impressed so far with PEAR. |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1011
|
Posted: Thu Apr 24, 2008 6:40 pm Post subject: |
|
|
| getSubmitValues() isn't bad, but exportValues() is a better choice in most cases. |
|
| Back to top |
|
 |
mickeden
Joined: 24 Apr 2008 Posts: 3
|
Posted: Thu Apr 24, 2008 8:50 pm Post subject: |
|
|
| Ok Mark, Thanks for that |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|