Page 2 of 2

Posted: Thu Mar 09, 2006 4:16 pm
by feyd
it's more like array_merge() actually ;)

Posted: Thu Mar 09, 2006 4:19 pm
by 5leander5
Yeah. this is my form declaration:

<body>
<form name="ExpressionInterest" method="post" action="sendmail.php">

Posted: Thu Mar 09, 2006 4:21 pm
by 5leander5
feyd | Please use

Code: Select all

and

Code: 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

and

Code: 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]

Posted: Thu Mar 09, 2006 4:28 pm
by feyd
5leander5 wrote:What do mean here? I'm not sure.
It was in response to R4000's previous post.