Jump to content

Merging two pages into one file (OSCommerce DIY Mod)


Skatecrazy1

Recommended Posts

basically i want to have two of these auction registration pages, however, oscommerce only allows me to use one file, live_auctions.php, so i figured i'd make a dropdown that took you to one reg form or the other depending on input, but keep it in the same file. 

 

heres the code, the problem i'm having is that i can't get the form action="<? $_SERVER['PHP_SELF']; ?>"> to direct the form input back to the file (within the define() function) and output one of the two html options i have

thanks in advance for any help at all

-dakota

 



<?php

$auction = $_POST['auction'];

define("NAVBAR_TITLE", "PREMIERE PROPS LIVE AUCTIONS!");

define("HEADING_TITLE", "PREMIERE PROPS LIVE AUCTIONS!");


define('BASE_HTML', '

<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td><img src="http://www.premiereprops.com/auctions/2hlw/hlw2_billboard.jpg" width="530" height="252" /></td>
</tr>
<tr>
<td>
<form method="post" action="live_auctions.php">
<table cellspacing="0" cellpadding="2">
<tr>
<td>
<select name="auction">
<option selected>Choose a live auction!</option>
<option value="car">Massive Car Auction</option>
<option value="2hlw">HUGE Halloween II Auction</option>
</select>
</td>
<td>
<input type="submit" value="Register Now" />
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td><img src="http://www.premiereprops.com/auctions/car_auction/ca_billboard.png" width="530" height="252" /></td>
</tr>
</table>
');

define('CAR_HTML', '


</style>
</head>
<p align="center"><img border="0" src="https://www.premiereprops.com/auctions/car_auction/ca_billboard.png" alt="CAR AUCTION AUGTUST 1 & 8!" width="530" ><br /></A> </p>



<p><font face="Tahoma"><span style="font-size: 10pt;">

Premiere Props will be auctioning off iconic cars from fan favorite movies for one weekend only! In partnership with TedMoser of Picture Car Warehouse, Premiere Props will be auctioning off over 100 iconic cars from acclaimed Hollywood movies as well as hotrods and classic cars from Picture Car Warehouse\'s collection on August 15th at LA Center Studios in Los Angeles, California (1201 West 5th Street, LA, CA 90017) at 11am with a preview from 9am - 11am. </span><b>

<br /><br /><font size="2">OVER 100 ICONIC CARS UP FOR BID</font></b></font></p>

<p><font face="Tahoma"><span style="font-size: 10pt;">Premiere Props and Picture Car Warehouse will auction off
one-of-a-kind automobiles from box office hit films including "Little Miss Sunshine," "Unthinkable," "Indiana Jones," "The
Great Debaters," "Redline," "Slipstream," "Knight Rider," "Sand Boys," "Soul Men," "No Country For Old Men," 
"Holiday," "Bruce Almighty," "Fast and Furious," "Rush Hour 3,"  "Mad Men,"  "Taxi," and many, many more!</span></font></p>

<p style="font-size:16px; color:#1A0880; font-weight:bold">REGISTER NOW:</p>

<p>    We invite you to be part of our exciting live auction events and registering online is simple. You must register in order
to place bids on all available items. We have set up the following three methods to place a bid: <br />

</p>

<ol>

                           <li><font color="#1A0880"><strong>Live Auction Online bidding:</strong></font> 

						This option of registration is for those that will 

						be placing bids via the internet. You may register 

						for online bidding by visiting the iCollector webpage:

<a href=http://www.icollector.com/Massive-Car-Auction-Movie-Cars-Hot-Rods-Classics_as14761" target="_blank">www.icollector.com</a>.<br />

                          <br />

                            </li>

<li><font color="#1A0880"><strong>Live Auction Phone bidding:</strong></font> This option of registration is for those that will be placing bids via telephone.  You may register for telephone bidding using the form below<em> (scroll down)</em>.<br />

                                <br />

</li>

                            <li> <font color="#1A0880"><strong>Live Auction In-person bidding:</strong></font> This option of registration is for those that will be placing bids in-person. If you would like to come and visit in person, then register using the form below <em>(scroll down)</em>. You can never register too early so do it now!:                            </li>

</ol>

                          

                         <p align="center" style="font-size:14px; color:#1A0880; font-weight:bold">:: 

						<a href="http://www.icollector.com/Massive-Car-Auction-Movie-Cars-Hot-Rods-Classics_as14761">See  Item Catalog For This Auction</a> ::</p>

<center>

                          <table width="100%" border="0">

                            <tr>

                              <td><form enctype="multipart/form-data" action="http://www.premiereprops.com/ppformz/use/passions_register/process.php" method="post">

                                  <div align="center">

                                    <table width="90%" border="0"  cellspacing="10">

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>* I am registering for:</strong></span></td>

                                        <td align="left"><span style="font-size:13px">Phone Bidding 

                                        <input type="radio" name="typebid" value="phone" />                                                    In-Person Bidding 

                                        <input type="radio" name="typebid" value="inperson" /></span></td>

                                      </tr>

                                      <tr>

                                        <td width="35%" align="right"><br />

                                        * <span style="font-size:13px"><strong>First Name:</strong></span></td>

                                        <td width="65%" align="left"><br />

                                        <input name="firstname" type="text" size="25" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Middle Initial:</strong></span></td>

                                        <td align="left"><input name="middleinitial" type="text" size="2" maxlength="1" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right">* <span style="font-size:13px"><strong>Last Name:</strong></span></td>

                                        <td align="left"><input name="lastname" type="text" size="25" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right">* <span style="font-size:13px"><strong>E-mail:</strong></span></td>

                                        <td align="left"><input name="email" type="text" size="30" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right">* <span style="font-size:13px"><strong>Billing Address:</strong></span></td>

                                        <td align="left"><input name="billingaddress" type="text" size="30" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right">* <span style="font-size:13px"><strong>City:</strong></span></td>

                                        <td align="left"><input name="city" type="text" size="25" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right">* <span style="font-size:13px"><strong>State:</strong></span></td>

                                        <td align="left"><input name="state" type="text" size="25" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right">* <span style="font-size:13px"><strong>Zip Code:</strong></span></td>

                                        <td align="left"><input name="zipcode" type="text" size="6" maxlength="5" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right">* <span style="font-size:13px"><strong>Primary Phone:</strong></span></td>

                                        <td align="left"><input name="primaryphone" type="text" size="15" />

                                          <span style="font-size:13px">(e.g. 123-123-1234)</span></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Secondary Phone:</strong></span></td>

                                        <td align="left"><input name="secondaryphone" type="text" size="15" />

                                          <span style="font-size:13px">(e.g. 123-123-1234)</span></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Fax Number:</strong></span></td>

                                        <td align="left"><input name="faxnumber" type="text" size="15" />

                                          <span style="font-size:13px">(e.g. 123-123-1234)</span></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Company Name:</strong></span></td>

                                        <td align="left"><input name="companyname" type="text" size="25" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Title:</strong></span></td>

                                        <td align="left"><input name="title" type="text" size="30" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Website URL:</strong></span></td>

                                        <td align="left"><input name="websiteurl" type="text" size="30" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Resale Tax ID:</strong></span></td>

                                        <td align="left"><input name="resaletaxid" type="text" size="15" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Issuing State:</strong></span></td>

                                        <td align="left"><input name="issuingstate" type="text" size="25" />

                                            <span style="font-size:11px"><br />

                                            Please bring a copy of your Tax Permit on Auction Day.</span></td>

                                      </tr>

                                      <tr>

                                        <td align="right"></td>

                                        <td><b>* = Required<br />

                                              <br />

                                        </b></td>

                                      </tr>

                                      <tr>

                                        <td colspan="2"><p align="center">

                                            <input type="submit" value="Submit Registration" />

                                        </p></td>

                                      </tr>

                                      <tr>

                                        <td colspan="2"><p align="center">

                                        </p></td>

                                      </tr>

                                      <tr>

                                        <td colspan="2"></td>

                                      </tr>

                                    </table>

                                  </div>

                              </form></td>

                            </tr>

                          </table>

</center>
');

define('HLW_HTML', '
</style>

</head>



<p align="center"><img border="0" src="http://www.premiereprops.com/auctions/2hlw/hlw2_billboard.jpg" alt="ROB ZOMBIE’S HALLOWEEN II LIVE AUCTION ON AUGUST 29TH !" width="530" ><br /></A> </p>


<p>
<b><font size="2">ROB ZOMBIE’S HALLOWEEN II LIVE AUCTION ON AUGUST 29TH !</font></b> </p>
<p>Premiere Props will be auctioning off over 500 props and costumes from Rob Zombie’s Halloween II on August 29th at 11am with a preview from 9am - 11am. The auction will be broadcast live on TV and online! Plus don’t miss the special guest appearances, soon to be announced. <span style="font-size: 10pt;">
  </span></p>
<span style="font-size: 10pt;">
<p>
  Proceeds Benefit The Entertainment Industry Foundation.</p>
</span><b>


<p style="font-size:16px; color:#1A0880; font-weight:bold">REGISTER NOW:</p>

<p>    We invite you to be part of our exciting live auction events and registering online is simple. You must register in order to place bids on all available items. We have set up the following three methods to place a bid: <br />

</p>

<ol>

                            <li><font color="#1A0880"><strong>Live Auction Online bidding:</strong></font> 

						This option of registration is for those that will 

						be placing bids via the internet. You may register 

						for online bidding by visiting the iCollector webpage:

						<a href=http://www.icollector.com/Massive-Car-Auction-Movie-Cars-Hot-Rods-Classics_as14761" target="_blank">www.icollector.com</a>.<br />

                            <br />

                            </li>

<li><font color="#1A0880"><strong>Live Auction Phone bidding:</strong></font> This option of registration is for those that will be placing bids via telephone.  You may register for telephone bidding using the form below<em> (scroll down)</em>.<br />

                                <br />

</li>

                            <li> <font color="#1A0880"><strong>Live Auction In-person bidding:</strong></font> This option of registration is for those that will be placing bids in-person. If you would like to come and visit in person, then register using the form below <em>(scroll down)</em>. You can never register too early so do it now!:                            </li>

</ol>

                          

                         <p align="center" style="font-size:14px; color:#1A0880; font-weight:bold">:: 

						<a href="http://www.icollector.com/Massive-Car-Auction-Movie-Cars-Hot-Rods-Classics_as14761"">See  Item Catalog For This Auction</a> ::</p>

<center>

                          <table width="100%" border="0">

                            <tr>

                              <td><form enctype="multipart/form-data" action="http://www.premiereprops.com/ppformz/use/passions_register/process.php" method="post">

                                  <div align="center">

                                    <table width="90%" border="0"  cellspacing="10">

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>* I am registering for:</strong></span></td>

                                        <td align="left"><span style="font-size:13px">Phone Bidding 

                                        <input type="radio" name="typebid" value="phone" />                                                    In-Person Bidding 

                                        <input type="radio" name="typebid" value="inperson" /></span></td>

                                      </tr>

                                      <tr>

                                        <td width="35%" align="right"><br />

                                        * <span style="font-size:13px"><strong>First Name:</strong></span></td>

                                        <td width="65%" align="left"><br />

                                        <input name="firstname" type="text" size="25" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Middle Initial:</strong></span></td>

                                        <td align="left"><input name="middleinitial" type="text" size="3" maxlength="1" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right">* <span style="font-size:13px"><strong>Last Name:</strong></span></td>

                                        <td align="left"><input name="lastname" type="text" size="25" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right">* <span style="font-size:13px"><strong>E-mail:</strong></span></td>

                                        <td align="left"><input name="email" type="text" size="30" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right">* <span style="font-size:13px"><strong>Billing Address:</strong></span></td>

                                        <td align="left"><input name="billingaddress" type="text" size="30" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right">* <span style="font-size:13px"><strong>City:</strong></span></td>

                                        <td align="left"><input name="city" type="text" size="25" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right">* <span style="font-size:13px"><strong>State:</strong></span></td>

                                        <td align="left"><input name="state" type="text" size="25" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right">* <span style="font-size:13px"><strong>Zip Code:</strong></span></td>

                                        <td align="left"><input name="zipcode" type="text" size="6" maxlength="5" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right">* <span style="font-size:13px"><strong>Primary Phone:</strong></span></td>

                                        <td align="left"><input name="primaryphone" type="text" size="15" />

                                          <span style="font-size:13px">(e.g. 123-123-1234)</span></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Secondary Phone:</strong></span></td>

                                        <td align="left"><input name="secondaryphone" type="text" size="15" />

                                          <span style="font-size:13px">(e.g. 123-123-1234)</span></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Fax Number:</strong></span></td>

                                        <td align="left"><input name="faxnumber" type="text" size="15" />

                                          <span style="font-size:13px">(e.g. 123-123-1234)</span></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Company Name:</strong></span></td>

                                        <td align="left"><input name="companyname" type="text" size="25" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Title:</strong></span></td>

                                        <td align="left"><input name="title" type="text" size="30" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Website URL:</strong></span></td>

                                        <td align="left"><input name="websiteurl" type="text" size="30" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Resale Tax ID:</strong></span></td>

                                        <td align="left"><input name="resaletaxid" type="text" size="15" /></td>

                                      </tr>

                                      <tr>

                                        <td align="right"><span style="font-size:13px"><strong>Issuing State:</strong></span></td>

                                        <td align="left"><input name="issuingstate" type="text" size="25" />

                                            <span style="font-size:11px"><br />

                                            Please bring a copy of your Tax Permit on Auction Day.</span></td>

                                      </tr>

                                      <tr>

                                        <td align="right"></td>

                                        <td><b>* = Required<br />

                                              <br />

                                        </b></td>

                                      </tr>

                                      <tr>

                                        <td colspan="2"><p align="center">

                                            <input type="submit" value="Submit Registration" />

                                        </p></td>

                                      </tr>

                                      <tr>

                                        <td colspan="2"><p align="center">

                                        </p></td>

                                      </tr>

                                      <tr>

                                        <td colspan="2"></td>

                                      </tr>

                                    </table>

                                  </div>

                              </form></td>

                            </tr>

                          </table>

</center>
');

//this chooses what is shown on the page depending on post input
if(isset($auctiontype)){
  if($auctiontype == "car"){
    define('TEXT_INFORMATION', CAR_HTML);
}
elseif($auctiontype == "2hlw"){
define('TEXT_INFORMATION', HLW_HTML);
}
}  else {
    define('TEXT_INFORMATION', BASE_HTML);
  }
//------------------------------------------------//




?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.