Jump to content

feedback form help


thenewguy

Recommended Posts

hi, i'm not a complete noob to php but i've rarely used it...i don't quite know how to explain but this is my php script for my feedback submission form:

 

<?php

  $email = $_REQUEST['email'] ;

  $message = $_REQUEST['message'] ;

  $name = $_REQUEST['name'];

  $number = $_REQUEST['number'];

  $company = $_REQUST['company'];

 

  mail( "blank@blank.co.uk", "Feedback Form Results",

    $message, "From: $email" );

   

 

 

at the moment when i check the email it only submits the information in the "message" field, what i want it to do is retrieve all the information (name, number, company etc) entered in the form, i've tried a few methods but nothing :s  would appreciated any help, thanks!

Link to comment
Share on other sites

<?php
  $keys = array('email','message','name','number','company');
  $msg = "";
  foreach($keys as $key)
    $msg .= "{$key}: {$_POST[$key]}\n";
  mail("blank@blank.co.uk","Feedback Form Results",$msg,"From: ".$_POST['email]);
?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.