Jump to content

Markx

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Markx's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi Premiso Here's the full code in the template. <table width="744" border="4" cellspacing="0" cellpadding="0" bordercolor="#7cbf00"> <tr bordercolor="#7CBF00" bgcolor="#7CBF00"> <td height="53"> </td> <td> </td> <td align="center" class="style15 style24 style31 style34">Price <br /> </td> <td align="center" class="style15 style24 style31 style34">Booking fee </td> <td width="13%" class="style15 style24"><div align="center" class="style33"> Qty</div></td> <td width="31%"> </td> </tr> <tr valign="top" bordercolor="#84CA00" style="padding-top:2px; padding-bottom:-10px"> <td width="1%" height="38"> </td> <td width="27%" valign="top"><span class="style22"><font color="#FFFFFF" face="Tahoma">Hourly lessons </font></span></td> <td width="11%" align="center" valign="top"><span class="style24 style31">£{PRICE}</span></td> <td width="17%" align="center" valign="top"><span class="style30 style31">£{BOOKINGFEE}</span></td> <td colspan="2"> <form action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/157371735812724" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm"> <table width="273" height="46" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="37"><input name="item_name_1" type="hidden" value="{UCFAREA} - Hourly Lessons"/></td> <td width="35" valign="top"><input name="item_quantity_1" value="1" size="3" maxlength="3"/></td> <td width="55"><input name="item_description_1" type="hidden" value="Hourly lessons taken with Ignition Driving School within the <?php echo '$loc'; ?> area."/> <input name="item_price_1" type="hidden" value="23.50"/> </td> <td width="71"><input name="image" type="image" src="http://www.ignitiondrivingschool.com/onlinepayment/buy.gif" alt=""/></td> <td width="54"><input name="item_currency_1" type="hidden" value="GBP"/> <input name="_charset_" type="hidden" value="utf-8"/></td> <td width="21"> </td> </tr> </table> </form> Thanks Mark
  2. Hi Gevans Thank you for the reply, but the same thing keeps happening Mark
  3. ...sorry forgot to mention I'm using including it in a .tpl file. Not sure if that matters Mark
  4. Hi Daniel Unfortuantely that's not got it either. If you have a look at http://www.ignitiondrivingschool.com/onlinepayment2/warwick and click the first google checkout item, under the Item section, it should read Hourly lessons taken with Ignition Driving School within Warwick the area. ...where warwick is generated from the $loc. Thanks Mark
  5. Hi All I'm sure this is a very basic question, but I'm clueless on these things. I have a form that is generated from Google Checkout. The bit I'm struggling with is: <input name="item_description_1" type="hidden" value""/> In the value field I need to return text and a string. I've tried this: <input name="item_description_1" type="hidden" value="Payment for within the $loc area."/> ...but it just comes back as text. Any help would be much appreciated. Mark
  6. Hi F1Fan It still hasn't got it I'm afraid
  7. Hi Mark That's great, but for some reason it's not returning the $name. The code I have is: <? session_start(); if(!session_is_registered(username)) { echo "not logged in"; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <? $name = $_SESSION['username']; echo $name; ?> </body> </html> It has the username in there because it hasn't come back with the error. I'm sure it's just the final step I'm missing now. Thanks Mark
  8. Here's the code I have so far. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Ignition Driving School</title> <style type="text/css"> <!-- body { background-image: url(/beta/header-bg.gif); background-repeat: repeat-x; } A { color:#000000;} .style22 {font-size: small} .style27 {font-family: Tahoma; font-size: small; color: #FFFFFF; } .style28 {color: #FFFFFF} .style30 {font-family: Tahoma; font-size: small; color: #FFFFFF; font-weight: bold; } --> </style> </head> <?php include("../menu.php"); ?> <td width="100%" valign="bottom"><img src="/beta/space.gif" alt="" width="1" height="1" /></td> </tr> </table></td> </tr> <tr> <td height="37" valign="middle" background="/beta/menu-bg.gif" bgcolor="#84CA00"><img src="/images/phone.gif" alt="Call Us" width="200" height="16" hspace="10" vspace="0" align="right" /><font color="#FFFFFF" size="2" face="Tahoma"> <?php include("submenu.php"); ?> </tr> <tr> <td height="2" bgcolor="#FFBA00"><img src="/beta/space.gif" width="1" height="2" /></td> </tr> <tr> <td bgcolor="#84CA00"><table width="100%" height="100%" border="0" cellpadding="25"> <tr> <td valign="top"><p> <p><strong><font color="#FFFFFF" size="6" face="Tahoma">Christmas Party Menu </font></strong></p> <p align="left" class="style22"><font color="#FFFFFF" face="Tahoma">Please enter your name and the first date you are returning to work.</font></p> <p align="left" class="style22"> </p> <form method="post" name="christmas" action="christmasform.php"> <table width="595" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="291"> </td> <td width="135"> </td> <td width="169"><p>Partners Name:<br /> (If applicable)<br /> <input type="text" name="textfield" /> </p> </td> </tr> <tr> <td><span class="style30">Starters</span></td> <td> </td> <td> </td> </tr> <tr> <td><span class="style27">Roast vine tomato and basil soup </span></td> <td><div align="center"> <input name="starter" type="radio" value="soup" /> </div></td> <td><div align="center"> <input name="starterp" type="radio" value="soupp" /> </div></td> </tr> <tr> <td><span class="style27">Smoked trout and horseradish tartare, chicory leaves, pea shoots</span></td> <td><div align="center"> <input name="starter" type="radio" value="trout" /> </div></td> <td><div align="center"> <input name="starterp" type="radio" value="troutp" /> </div></td> </tr> <tr> <td><span class="style27">Honey roast figs, cashel blue cheese, balsamic reduction </span></td> <td><div align="center"> <input name="starter" type="radio" value="roastfigs" /> </div></td> <td><div align="center"> <input name="starterp" type="radio" value="roastfigsp" /> </div></td> </tr> <tr> <td><span class="style27">Pressed terrine of local game, herb brioche, kumquat marmalade</span></td> <td><div align="center"> <input name="starter" type="radio" value="terrine" /> </div></td> <td><div align="center"> <input name="starterp" type="radio" value="terrinep" /> </div></td> </tr> <tr> <td><span class="style28"></span></td> <td><div align="center"></div></td> <td><div align="center"></div></td> </tr> <tr> <td><span class="style30">Mains</span></td> <td><div align="center"></div></td> <td><div align="center"></div></td> </tr> <tr> <td><span class="style27">Free-range roast turkey breast and chestnut stuffing wrapped in pancetta, pearl onion jus, parsnip crisps </span></td> <td><div align="center"> <input name="mains" type="radio" value="turkey" /> </div></td> <td><div align="center"> <input name="mainsp" type="radio" value="turkeyp" /> </div></td> </tr> <tr> <td><span class="style27">Crispy skin salmon, creamed pearl barley, sweet potato fondant </span></td> <td><div align="center"> <input name="mains" type="radio" value="salmon" /> </div></td> <td><div align="center"> <input name="mainsp" type="radio" value="salmonp" /> </div></td> </tr> <tr> <td><span class="style27">Red onion, pear and goats cheese tart tatain, sweet and sour vegetables</span></td> <td><div align="center"> <input name="mains" type="radio" value="tarttatain" /> </div></td> <td><div align="center"> <input name="mainsp" type="radio" value="tarttatainp" /> </div></td> </tr> <tr> <td><span class="style27">10oz Porterhouse Ribeye Steak, braised mushroom, roast shallot, red wine jus. </span></td> <td><div align="center"> <input name="mains" type="radio" value="steak" /> </div></td> <td><div align="center"> <input name="mainsp" type="radio" value="steakp" /> </div></td> </tr> <tr> <td><span class="style28"></span></td> <td><div align="center"></div></td> <td><div align="center"></div></td> </tr> <tr> <td><span class="style30">Puddings</span></td> <td><div align="center"></div></td> <td><div align="center"></div></td> </tr> <tr> <td><span class="style27">Christmas pudding with brandy sauce </span></td> <td><div align="center"> <input name="pudding" type="radio" value="xmas" /> </div></td> <td><div align="center"> <input name="puddingp" type="radio" value="xmasp" /> </div></td> </tr> <tr> <td><span class="style27">Selection of ice creams in a tuille basket </span></td> <td><div align="center"> <input name="pudding" type="radio" value="icecreams" /> </div></td> <td><div align="center"> <input name="puddingp" type="radio" value="icecreamsp" /> </div></td> </tr> <tr> <td><span class="style27">Chocolate marquise with Drambuie</span></td> <td><div align="center"> <input name="pudding" type="radio" value="chocmarquise" /> </div></td> <td><div align="center"> <input name="puddingp" type="radio" value="chocmarquisep" /> </div></td> </tr> <tr> <td><span class="style27">English cheese board, crackers </span></td> <td><div align="center"> <input name="pudding" type="radio" value="cheeseboard" /> </div></td> <td><div align="center"> <input name="puddingp" type="radio" value="cheeseboardp" /> </div></td> </tr> </table> </form> <p align="left" class="style22"> </p> </tr> <tr> <td valign="top"> </tr> </table> </td> </tr> <tr> <td height="2" align="center" bgcolor="#388900"><img src="/beta/space.gif" width="2" height="2" /></td> </tr> <tr> <td height="40" align="center"><font color="#FFFFFF" size="1" face="Tahoma">Copyright © 2004-<?php echo date("Y")?> Ignition Driving School. All Rights Reserved.</font></td> </tr> </table> </body> </html> The username is stored via the control panel using webprotect. Sorry, I haven't got any more information than that.
  9. Sorry for the vagueness both What further information do you need ???
  10. Hi All I'm sure this is a simple question, but a section of my website is username and password protected. Is it possible to return the name of the user so I can use it as a column heading in a table ??? Thanks in advance Mark
  11. Hi Both Thank you for that. It's working great. Next problem... I'm trying to send the information via email using $message = ",$first,$second,$third,$fourth,$fifth,$sixth,$seventh" mail("mark@ignitiondrivingschool.com","Holiday form", $message ); It comes back with Parse error: syntax error, unexpected T_STRING in /home/ignition/public_html/instructor/sendform.php on line 250 I've used echo on all the $first etc and it works fine. The mail command is practically the same as an existing one I use for a completely different form. Any further help would be great Markx
  12. Hi All I'm stuck with a problem. I've got 3 pages. 1) A form which asks for a name of a user. 2) Uses name and then also posts new information from checkboxes to sendmail.php 3) Is sendmail.php The problem is I need sendmail.php to find what name is from the first page. The 1st page uses GET to send the information to 2nd page. sendmail.php contains a lot of $c18=$_REQUEST['checkbox']; $c183=$_REQUEST['checkbox2']; $c19=$_REQUEST['checkbox3']; etc but I can't seem to REQUEST the name from the 1st page I hope you can help Thanks Markx
  13. Hi Snooble. That's perfect, just what I was looking for. However, It always seems to come out in MMDDYYYY format and I need it in DDMMYYYY format. Any ideas? Thanks Markx
×
×
  • 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.