Need help sending information to another page.

Hi Everyone,

I need some help. I have a web hosting web site. The web hosting page has a form where customers can fill in, e.g. - bandwidth, web space, etc…

Then they press a button to get a quote. They get the quote then either leave the site or continue to purchase the plan.

I was just woudering is it possible to send to information that the customer has typed in after they have pressed the quote button. It would be nice to know what kind of web space and bandwidth they are looking for.

Here’s the index.php code:

[code]

Host Scorpion - Linux Server Quote <? require("incs/configuration.php"); ?>
<? echo(URL); ?> - Customize your Linux Server plan with YOUR own standards
  Linux Server
<? $space_price == "5"; ?>
    </table>  
  </form></td>
<? if ($_POST["space"] == "") { ?>
 
*Number Value
*Number Value
 
 
*Number Value
*Number Value
 
 
*Number Value
 
*Number Value
 

 

 
 

<? } else { ?>

 

 
<td>&nbsp; </td>
    <? } ?>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td> 
      

    </td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr></table>
<? echo(""); ?>

©2004, <? echo(COMPANY); ?>. All Rights Reserved.

[/code]

The first form is where it starts off with:

<? 

echo("<form name=“form1” method=“post” action="./incs/order.php?cost=".number_format(TOTAL_COST,2,’.’,’’)."&space=$space&bandwidth=$bandwidth&email=$email&ftp=$ftp&databases=$databases&subdomains=$subdomains&ftp=$ftp">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> ");
     ?>
    </font><br>
  </p></td>
<? if ($_POST["space"] != "") { if ($_POST["bandwidth"] == "") { print "Please fill out all areas; Use '0' or 'zero' for none."; exit; } if ($_POST["ftp"] == "") { print "Please fill out all areas; Use '0' or 'zero' for none."; exit; } if ($_POST["email"] == "") { print "Please fill out all areas; Use '0' or 'zero' for none."; exit; } if ($_POST["subdomains"] == "") { print "Please fill out all areas; Use '0' or 'zero' for none."; exit; } if ($_POST["databases"] == "") { print "Please fill out all areas; Use '0' or 'zero' for none."; exit; }
			echo("<b>Custom Plan</b> <br>
				<font size=2>- ". $_POST["space"] ." MB Space <BR>
				- ". $_POST["bandwidth"] ." GB Bandwidth <BR>
				- ". $_POST["email"] ." eMail accounts <br>
				- ". $_POST["subdomains"] ." Subdomains <Br>
				- ". $_POST["databases"] ." Databases <BR>
				- ". $_POST["ftp"] ." FTP Accounts <BR></font>
				 ");

		  ?>
        <br> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Total 
        Monthly Cost:</strong> <? echo("$"); echo(number_format(TOTAL_COST,2,'.',''));?> </font> </td>
    </tr>
  </table>
</td>
<td width="65%" align="left" valign="top"> 
  <table width="593" border="0" cellspacing="0" cellpadding="0">
    <!--DWLayoutTable-->
    <tr> 
      <td colspan="4" valign="bottom"><p><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Please 
          fill out your information below to proceed with the order to the 
          left.<br>
          <em><strong>All Fields are required.</strong></em></font> </p>
        <div align="left"> </div></td>
    </tr>
    <tr> 
      <td width="107" valign="bottom"><p>&nbsp;</p></td>
      <td width="124" valign="bottom"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
        Full Name</font></td>
      <td width="5" valign="bottom">:</td>
      <td width="357" valign="bottom"> <div align="left"> 
          <input name="name" type="text" class="login" id="name4">
        </div></td>
    </tr>
    <tr> 
      <td>&nbsp;</td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> eMail</font></td>
      <td>:</td>
      <td><div align="left"> 
          <input name="user_email" type="text" class="login" id="user_email5">
        </div></td>
    </tr>
    <tr> 
      <td>&nbsp;</td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><em>Confirm 
        eMail </em></font></td>
      <td>:</td>
      <td><div align="left"> 
          <input name="user_email2" type="text" class="login" id="user_email24">
        </div></td>
    </tr>
    <tr> 
      <td>&nbsp;</td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Domain 
        Name</font></td>
      <td>:</td>
      <td><div align="left"> 
          <input name="domain" type="text" class="login" id="domain4">
        </div></td>
    </tr>
    <tr> 
      <td>&nbsp;</td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Address</font></td>
      <td>:</td>
      <td><div align="left"> 
          <input name="addy" type="text" class="login" id="addy5">
        </div></td>
    </tr>
    <tr> 
      <td>&nbsp;</td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><em>Address 
        Cont. </em></font></td>
      <td>:</td>
      <td><div align="left"> 
          <input name="addy2" type="text" class="login" id="addy24">
        </div></td>
    </tr>
    <tr> 
      <td>&nbsp;</td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">City</font></td>
      <td>:</td>
      <td><div align="left"> 
          <input name="city" type="text" class="login" id="city4">
        </div></td>
    </tr>
    <tr> 
      <td>&nbsp;</td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">State</font></td>
      <td>:</td>
      <td><div align="left"> 
          <input name="state" type="text" class="login" id="state4">
        </div></td>
    </tr>
    <tr> 
      <td height="18"></td>
      <td rowspan="3" valign="top"><p><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Country 
          </font></p>
        <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
          <input type="radio" name="recurring" value="1">
          </font>Bill me every month automatically.<br>
          <input type="radio" name="recurring" value="2">
          <font size="2" face="Verdana, Arial, Helvetica, sans-serif">Bill 
          me yearly.</font></font></font></p></td>
      <td rowspan="3" valign="top">:</td>
      <td valign="top"> <div align="left"> 
          <p> 
            <input name="country" type="text" class="login" id="country4">
          </p>
        </div></td>
    </tr>
    <tr> 
      <td height="39"></td>
      <td valign="middle"><p><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Payment 
          via: 
          <input type="radio" name="payment" value="p">
          PayPal / 
          <input type="radio" name="payment" value="c">
          2Checkout</font></p></td>
    </tr>
    <tr> 
      <td height="42"></td>
      <td valign="top"> 
        <? } ?>
        <br> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
        <? 
		  echo("<input name="imageField2" type="image" src="images/order_22.gif" width="100" height="26" border="0">");
		 
		  ?>
        </font></td>
    </tr>
  </table>
  <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font> 
  </p>
  </td>

 
     

Thats the form where customers can type in the amount they would like.

Any other code can be posted if needed from the other two pages.

Thankyou,

Neil.

I’ve sorted it.

I just included the code below.

[code]<?php
$recip = QUOTE; //Change this email to the email you want the info / reciept sent to.
$amount = number_format(TOTAL_COST,2,’.’,’’);
$yearly = ($amount * “12”);
if ($recip == “”) { print “Unexpected error. Please Try again”; exit;}

		$subj = "Custom Windows Server Host Plan Quote"; //Change this to change the subject of your email.
		$message = "
		Quote Information:
		
		Space = $space
		Bandwidth = $bandwidth
		eMail Accts. = $email
		FTP Accts. = $ftp
		Databases = $databases
		Sub-Domains = $subdomains
		
		-------------------------
		Monthly Cost = $amount
		Yearly Cost  = $yearly";
		
		$extra = "From: A Quote";

		mail ($recip, $subj, $message, $extra);

?> [/code]

Still would be nice it I could have it in another file of it’s own, but that another day :D

Sponsor our Newsletter | Privacy Policy | Terms of Service