php Frommail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
after_shox
Forum Newbie
Posts: 13
Joined: Wed Mar 10, 2004 11:53 am

php Frommail

Post by after_shox »

Is there a formmail for php that will just send me whatever text boxes are in the form by email so i dont have to specify them?
lostboy
Forum Contributor
Posts: 329
Joined: Mon Dec 30, 2002 8:12 pm
Location: toronto,canada

Post by lostboy »

you could build a loop to cycle thru the elements and place them into an email body

Code: Select all

You just loop through it like any array:

foreach($_POST as $key=>#value){
  # use the key as variable name
  print $$key = $val;
}
after_shox
Forum Newbie
Posts: 13
Joined: Wed Mar 10, 2004 11:53 am

Post by after_shox »

i get

Code: Select all

`T_VARIABLE' or `'$'' in /home/douple/public_html/link/send2.php on line 5
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

switch the # for $ in value
Post Reply