Pass or Echo form values to new form fields ?

wxdqz

New Member
Hi.

I am looking for some help with a forms problem...

I have a form on my site with 10 user fields, name phone ect... this form uses /othersite/register.php and when submitted it registers users for another site not on my server via a sub domain, I need to also have the user details of this form emailed to me since this other site uses many affiliate sites like mine they can't or won't change their php just so it will also email results to me.

I have another html page which has a form that uses the formmail.pl script which gets sent to me by email and it works fine

How can I get the user variables of the first form (register.php) emailed to me as well as being submitted to the other server.

or how can I echo the user variables of my formmail.pl form into the user fields or the php form page which would then be submitted to the other server this would require the user to submit what would look like the same page 2 times... but I can live with that...

If anyone can point me in the right direction I would be grateful... I have tried the dreamweaver MM_include with no success I also tried these 2 methods below but am unsure if I am doing this right...

I put this code on the formmail.pl page only as I need it to email me first and then send the variables to the php form page which will then be submitted by the user to the other site server
-----------------------------------------------------
<?php
$username = "username";
echo ("$username prints \"username\"");
$Password = "Password";
echo ("$Password prints \"Password\"");
$RePassword = "RePassword";
echo ("$RePassword prints \"RePassword\"");
$CompanyName = "CompanyName";
echo ("$CompanyName prints \"CompanyName\"");
$address = "address";
echo ("$address prints \"address\"");
$country = "country";
echo ("$country prints \"country\"");
$countryPhone = "countryPhone";
echo ("$countryPhone prints \"countryPhone\"");
$numberPhone1 = "numberPhone1";
echo ("$numberPhone1 prints \"numberPhone1\"");
$numberPhone2 = "numberPhone2";
echo ("$numberPhone2 prints \"numberPhone2\"");
$country = "country";
echo ("$country prints \"country\"");
$email = "email";
echo ("$email prints \"email\"");
$Contact = "Contact";
echo ("$Contact prints \"Contact\"");
$Profiles = "Profiles";
echo ("$Profiles prints \"Profiles\"");
?>
-----------------------------------------------------
and I also tried....
-----------------------------------------------------
<?php
if ($HTTP_POST_VARS['action'] == 'submitted') {
print '<pre>';

print_r($HTTP_POST_VARS);
print '<a href=http://www.webdeveloper.com/forum/archive/index.php/"'. $HTTP_SERVER_VARS['PHP_SELF'] .'">Please try again</a>';

print '</pre>';
} else {
?>
<form action="<?php echo $HTTP_SERVER_VARS['PHP_SELF'];?>" method="post">
-----------------------------------------------------
here in a nutshell is what I need to do

User submits his details using my html page with formmail.pl I get results by email ----> at the same time my html page sends user info to second html page that has php form and looks exactly the same ---> user submits this second form to other server.

Hope some one can assist or give pointers

Thanks.

Jolac
 
Back
Top