Current location: Hot Scripts Forums » Programming Languages » PHP » I Already Have a Form! I need to attatch a script!


I Already Have a Form! I need to attatch a script!

Reply
  #1 (permalink)  
Old 08-25-03, 03:21 AM
Myke311 Myke311 is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Question I Already Have a Form! I need to attatch a script!

I already have a really, really long form in html. I need to attatch a script to it so that it will actually send. The only problem I have is all the PHP scripts I've found you need to enter all of the form fields intot he php script and then format the email the way you want it. That would take me FOREVER.

I just need the script to send the form i already have to an email I've chosen. Basically I need what a javascript form mailer would do, minus the "Youre sending mail it may contain a virus, Accept?" message.

Anyone know what i can use?
Reply With Quote
  #2 (permalink)  
Old 08-25-03, 04:59 AM
kevin kevin is offline
Newbie Coder
 
Join Date: Jun 2003
Location: USA
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Myke !

I found this site at Hotscripts

http://cgi2k.com/efeedback_info.shtml

They have a very cool @feedback script. Give it a try

You can use this link to create your own form mail and test it right away

http://cgi2k.com/cgi-bin/efeedback/adminV4.cgi

Good luck
Kev
Reply With Quote
  #3 (permalink)  
Old 08-25-03, 06:18 PM
Myke311 Myke311 is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
that thing is really nice but it costs $50... i dont even have $50 in my bank account right now


anyone else know of something that could help me?

Last edited by Myke311; 08-25-03 at 06:23 PM.
Reply With Quote
  #4 (permalink)  
Old 08-26-03, 03:21 PM
Myke311 Myke311 is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
help!
Reply With Quote
  #5 (permalink)  
Old 08-26-03, 08:01 PM
ermau's Avatar
ermau ermau is offline
Wannabe Coder
 
Join Date: Aug 2003
Location: Florida, USA
Posts: 240
Thanks: 0
Thanked 0 Times in 0 Posts
PHP Code:



$message 
'';

foreach(
$_POST AS $key => $value)
{
     
$message .= $key.' = '.$value.'<br>';

Change <BR> to \n if you cant use HTML in your email, then just send the $message variable to your email.
__________________
PHP / mySQL Developer
Reply With Quote
  #6 (permalink)  
Old 08-27-03, 01:53 AM
Myke311 Myke311 is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
im sorry, could you explain in more detail about how to do that? Which script should I add that line to?
Reply With Quote
  #7 (permalink)  
Old 08-27-03, 05:25 AM
ermau's Avatar
ermau ermau is offline
Wannabe Coder
 
Join Date: Aug 2003
Location: Florida, USA
Posts: 240
Thanks: 0
Thanked 0 Times in 0 Posts
This goes in the script that the action is set to in your form. When using the POST method for a form, all things set in that form are sent to $_POST, using the name of the input type as the key of the $_POST array, and the value as the value of that key. The line in the simply puts together an email body with each name with a value next to it, no matter how many items you have which is what you wanted.

Also,
Research is your friend

http://www.php.net/manual/en/control...es.foreach.php
http://www.php.net/manual/en/function.mail.php
__________________
PHP / mySQL Developer

Last edited by ermau; 08-27-03 at 05:27 AM.
Reply With Quote
  #8 (permalink)  
Old 12-15-11, 08:51 PM
mystro24 mystro24 is offline
New Member
 
Join Date: Dec 2011
Location: New Jersey
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
I have a script which worked with another website but not with another one. I can't figure out what I'm doing wrong. I also don't really know php.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a good review management script griz_fan Script Requests 10 07-29-07 05:08 AM
Checkboxes on form = mailto recipient. Bojon PHP 4 12-21-04 06:07 PM
SQL database registration form help vinhkhuong PHP 3 10-10-03 03:49 AM
A good form sender script Heçtor Banehearted PHP 4 10-10-03 01:24 AM
Looking for Registered Members area access to files .. script zamen Script Requests 3 09-02-03 05:44 AM


All times are GMT -5. The time now is 05:38 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.