General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 6th, 2002, 01:13 AM
neobyte neobyte is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: CA
Posts: 7 neobyte User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
create a feedback form possible?

It appears that using the mail() function makes it possible to create a simple feedback form where you're limited to a "message" from the respondant, but that's seems to be it. (I got an error message telling me that mail() could only contain 5 parameters...I was trying for six!)
Is there a way to have a real feedback form, one with 15 or 20, or whatever amount of questions in an html format that someone could submit (email) to you that would be processed by your php script?
As I understand this, every item you define in your html form ( i.e. defined as in <input type="text" name="item">) is automatically assigned to the array $_POST...and if I'm right about that, then there must be a way to get that info.
Or is the mail() function limited to just a few pieces of data?
Please don't add a link to mail() in the manual - I've read it at least 20 times now and still get nothing from it.
I can't understandd why can't I find info on this seemingly simple question...am I the only person who would like to have a feedback form on my site that contains more than one <teatarea> entry? I thought php was gonna be fun...?...!...? Input....neeeeed input....inpooot...

Reply With Quote
  #2  
Old November 6th, 2002, 01:24 PM
jpenn jpenn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Washington, DC
Posts: 317 jpenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 3 sec
Reputation Power: 7
Quote:
Is there a way to have a real feedback form, one with 15 or 20, or whatever amount of questions in an html format that someone could submit (email) to you that would be processed by your php script?


There is no limit on the amount of information you can send to the mail function for proccessing. You must create a message string that holds all of the information you wish to send, like so ->

PHP Code:
 $message false;
$subject 'some subject';
$email_to 'someaddress@this.com';
$email_from $_POST['email'];

$message .= 'The users answer to question #1 is: ' $_POST['ques_1'] . "\n\r";
$message .= 'The users answer to question #2 is: ' $_POST['ques_2'] . "\n\r";
$message .= 'The users answer to question #3 is: ' $_POST['ques_3'] . "\n\r";
$message .= 'The users answer to question #4 is: ' $_POST['ques_4'] . "\n\r";
$message .= 'The users answer to question #5 is: ' $_POST['ques_5'] . "\n\r";
$message .= 'The users answer to question #6 is: ' $_POST['ques_6'] . "\n\r\n\r";

$message .= 'The users name is: ' $_POST['name'] . "\n\r";
$message .= 'The users phone # is: ' $_POST['phone'] . "\n\r";
$message .= 'The users email is: ' $_POST['email'] . "\n\r";

$message .= 'The user wrote this feedback:' "\n\r";
$message .= $_POST['feedback'];

mail$email_to$subject$message'From: ' $email_from/* Extra Headers, If Any */ ); 


As you see, there is no limit on the size of the message.
__________________
~ Joe Penn

We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set?

Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you.




Reply With Quote
  #3  
Old November 7th, 2002, 10:50 PM
neobyte neobyte is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: CA
Posts: 7 neobyte User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks jpenn!

Thanks so much for laying this out in plain English (and text!)...I wonder why the manual doesn't have a straight forward example like yours?! I truly have been searching for days just trying to get an answer that gets right to the heart of the problem with no superlative balogna!
Thanks very, very much...I still can't imagine how one could possibly glean this information from the "explanation" in the manual.
Would have responded sooner, but had a server issue and am setting-up another router on the LAN. I'll be back working on the webpage and php by tomorrow...got the basic php working on my page that simply asks for questions/comments. Check it out later next week...with your advice, I should have the form thing done www.rjscollects.com. (My boss will be overjoyed!)

Reply With Quote
  #4  
Old November 8th, 2002, 12:37 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
And welcome to the forums! If you have anymore questions, please feel free to ask them here, devArticles.com!

Reply With Quote
  #5  
Old November 8th, 2002, 12:02 PM
neobyte neobyte is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: CA
Posts: 7 neobyte User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Boochies!

thanks...I'm sure I'll have plenty more questions...I'm living of fear of mySQL...but that's down the road. Your clip is excellent...I get a laugh everytime I look at it!!!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > create a feedback form possible?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT