Hi,
I have this very simple script to mail form:
<?php
$redirectURL = "$arr = get_defined_vars();
$mailBody=implode(" , ",$arr[HTTP_POST_VARS]) . "\n\n";
$email="hujo@nextra.sk";
$mailHeaders = "From: info@mysite.sk\r\n";
$mailSubject = "Online objednavka";
mail($email, $mailSubject, $mailBody, $mailHeaders);
header("Location: ".$redirectURL);
?>
It works fine - it sends all values divided by commas in a row (value1, value2, value3, etc)
Would it be possible to update this script so it would send also keys/field names (key1: value1, key2: value2, key3: value3, etc)?
I know almost nothing about PHP, just need update this one script.
Thanks.
I have this very simple script to mail form:
<?php
$redirectURL = "$arr = get_defined_vars();
$mailBody=implode(" , ",$arr[HTTP_POST_VARS]) . "\n\n";
$email="hujo@nextra.sk";
$mailHeaders = "From: info@mysite.sk\r\n";
$mailSubject = "Online objednavka";
mail($email, $mailSubject, $mailBody, $mailHeaders);
header("Location: ".$redirectURL);
?>
It works fine - it sends all values divided by commas in a row (value1, value2, value3, etc)
Would it be possible to update this script so it would send also keys/field names (key1: value1, key2: value2, key3: value3, etc)?
I know almost nothing about PHP, just need update this one script.
Thanks.