keeping form fields set
Moderator: General Moderators
feyd | Please use
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
[quote="feyd"]it's more like [url=http://php.net/function.array_merge]array_merge()[/url] actually [/quote]
What do mean here? I'm not sure.
This is my full php script:Code: Select all
<?
session_start() ;
foreach($_POST as $key => $val)
{
$_SESSION[$key] = $val;
}
$email = $_POST['Email'];
$body = $_POST['Title']."\n";
$body .= $_POST['Name']."\n";
$body .= $_POST['Initial']."\n";
$body .= $_POST['Surname']."\n";
$body .= $_POST['Position']."\n";
$body .= $_POST['Company']."\n";
$body .= $_POST['Address1']."\n";
$body .= $_POST['Address2']."\n";
$body .= $_POST['Address3']."\n";
$body .= $_POST['Country']."\n";
$body .= $_POST['ContactNumber']."\n";
$body .= $_POST['CellNumber']."\n";
$body .= $_POST['Email']."\n";
mail( "albert_oflaherty@hotmail.com", "Expression Of Interest in Forum on Public Safety 2006", $body, "From: $email" );
header( "Location: http://www.bertsparadise.com/ExpressionOfInterest3.php" );
?>feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]