Jump to content
The mkiv Supra Owners Club

PHP help


GeordieSteve

Recommended Posts

pmsl I knew I became an infrastructure engineer for a reason! ;)

 

 

<?php

// designer

$reg = $_POST['reg'];

$fonts = $_POST['fonts'];

$tag_text = $_POST['tag_text'];

$borders = $_POST['borders'];

$l_side = $_POST['l_side'];

$side_badges = $_POST['side_badges'];

$backgrounds = $_POST['backgrounds'];

$supply_front = $_POST['supply_front'];

$front_size = $_POST['front_size'];

$supply_rear = $_POST['supply_rear'];

$rear_size = $_POST['rear_size'];

$honey = $_POST['honey'];

$chrome = $_POST['chrome'];

$fix = $_POST['fix'];

$mail = $_POST['mail'];

 

 

$cost = $_POST['cost'];

 

$action = $_GET['action'];

 

if ($supply_front == "checkbox"):

$supply_front = "Yes";

endif;

if ($supply_rear == "checkbox"):

$supply_rear = "Yes";

endif;

if ($honey == "checkbox"):

$honey = "Yes";

endif;

if ($chrome == "checkbox"):

$chrome = "Yes";

endif;

if ($fix == "checkbox"):

$fix = "Yes";

endif;

 

 

$plate = "

[EBAY] Normal Plate design information \n".

"Registration number: ".$reg ."\n".

"Font number: ".$fonts ."\n".

"Tag text: ".$tag_text ."\n".

"Border number: ".$borders ."\n".

"Legal side badge: ".$l_side ."\n".

"Side badge: ".$side_badges ."\n".

"Background: ".$backgrounds ."\n".

"Front: Yes"."\n".

"Rear: Yes"."\n".

"Honey: ".$honey ."\n".

"\n\n Total Cost: " . $cost . "\n -------------------\n\n".

"E-mail of customer: ". $mail . ""

;

 

if ($reg == ""):

die ("You havent entered Your registration number!");

elseif (is_null ($mail) || $mail == "[email protected]"):

die ("You havent entered Your E-mail!");

elseif ($action == "checkout"):

 

$final = $plate;

$fromEmail= '[email protected]';

$from = "From: ".$fromEmail."\r\n";

$from .= "MIME-Version:1.0\r\n";

$from .= "Content-Type: text/plain; charset=\"us-ascii\"\r\n";

$from .= "Content-Transfer-Encoding: 7bit\r\n";

 

mail("[email protected]", "[EBAY] Plate Order - " . $reg, $final, $from);

 

endif;

?>

http://www.customisedplates.com/ebayshowplates/Ebay-PlateMaker/order.gif

or Close Window

 

Still now worky

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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. You might also be interested in our Guidelines, Privacy Policy and Terms of Use.