<?

include ('/config_inc.php');

session_start();

  
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$number = $_POST['number'];

$subj = "$number";
    $msg = "First:  $fname\ Last: $lname\ NUMBER: $number\";


echo "<form method=\"post\" name=\"send1\" action=\"\send.php\">\n";
echo "<input type=\"hidden\" name=\"name\" value=\"Member\">\n";
echo "<input type=\"hidden\" name=\"email\" value=\"new@local.com\">\n";
echo "<input type=\"hidden\" name=\"subject\" value=\"$subj\">\n";
echo "<input type=\"hidden\" name=\"message\" value=\"$msg\">\n";


$nrap=0;
 



?>


<SCRIPT language=JavaScript type=text/javascript>
function actionSubmit() {
    document.send1.submit();
}
</SCRIPT>

<SCRIPT language=JavaScript type=text/javascript>
setTimeout('actionSubmit()',1500);
</SCRIPT>
</form>

ok im trying to grab data from another form that submits here and this script grabs the data and submits it to another php sendmail script which has my smtp on it on another server... the problem im running into is everything works but it doesnt send the values of the form


it sends everything but the values and when i look at html all the values are there in the hidden forms im doing this so i dont have smtp on my domain hosting but on another server any help would be apreciated thanks!!

Does your second server (with SMTP) actually allow for SMTP to be send from a different server? Very often this is disabled. So before anyone will try to help you, are you sure this is even possible in your situation?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.