Jump to content

racercam

Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

racercam's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thankyou! its now working perfect!
  2. fixed the problem with the form not working back to it not processing again! just loads /process.php
  3. Form: (apologies if it seems abit all over the place) <form> <form action="process.php" method="post"> <tr bordercolor="#F5F4FD" bgcolor="#C7CFE9"> <td colspan="4" class="style17"><div align="left"><strong> NAME <strong> <input name="NAME" type="text" /> </strong></strong></div></td> <td width="60"> </td> <tr bordercolor="#F5F4FD" bgcolor="#C7CFE9"> <td colspan="4" class="style17"><div align="left"><strong>ADDRESS </strong> <input name="ADDRESS" type="text" /> </div></td> <td class="style15"> </td> </tr> <tr bordercolor="#F5F4FD" bgcolor="#C7CFE9"> <td height="24" colspan="4" class="style17"><div align="left"><strong>TOWN </strong> <input name="TOWN" type="text" /> </div></td> <td class="style15"> </td> </tr> <tr bordercolor="#F5F4FD" bgcolor="#C7CFE9"> <td height="24" colspan="4" class="style17"><div align="left"><strong>POSTCODE</strong> <input name="POSTCODE" type="text" /> </div></td> <td class="style15"> </td> </tr> <tr bordercolor="#F5F4FD" bgcolor="#C7CFE9"> <td height="27" colspan="4" class="style17"><div align="left"><strong>PHONE </strong> <input name="PHONE" type="number" /> </div></td> <td class="style15"> </td> </tr> <tr bordercolor="#F5F4FD" bgcolor="#C7CFE9"> <td height="24" colspan="4" class="style17"><p align="left"><strong>EMAIL </strong> <input name="email" type="text" /></td> <td class="style15"> </td> </tr> <tr bgcolor="#F5F4FD"> <td width="68">Item Number </td> <td width="60">Page Number </td> <td width="144">Product Code </td> <td width="210">Description</td> <td>Price</td> <td width="45">QTY</td> <td width="51">Total</td> </tr> <tr bgcolor="#F5F4FD"> <td>1</td> <td><input name="PageNumber" type="text" size="10" /></td> <td><input name="ProductCode" type="text" /></td> <td><input name="Description" type="text" size="35" /></td> <td><input name="Price" type="text" size="10" /></td> <td bordercolor="#3E55A7"><input name="Quantity" type="text" size="10" /></td> <td><input name="Total" type="text" size="10" /></td> </tr> <tr bgcolor="#F5F4FD"> <td>2</td> <td><input name="PageNumber2" type="text" size="10" /></td> <td><input name="ProductCode2" type="text" /></td> <td><input name="Description2" type="text" size="35" /></td> <td><input name="Price2" type="text" size="10" /></td> <td><input name="Quantity2" type="text" size="10" /></td> <td><input name="Total2" type="text" size="10" /></td> </tr> <tr bgcolor="#F5F4FD"> <td>3</td> <td><input name="PageNumber3" type="text" size="10" /></td> <td><input name="ProductCode3" type="text" /></td> <td><input name="Description3" type="text" size="35" /></td> <td><input name="Price3" type="text" size="10" /></td> <td><input name="Quantity3" type="text" size="10" /></td> <td><input name="Total3" type="text" size="10" /></td> </tr> <tr bgcolor="#F5F4FD"> <td>4</td> <td><input name="PageNumber4" type="text" size="10" /></td> <td><input name="ProductCode4" type="text" /></td> <td><input name="Description4" type="text" size="35" /></td> <td><input name="Price4" type="text" size="10" /></td> <td><input name="Quantity4" type="text" size="10" /></td> <td><input name="Total4" type="text" size="10" /></td> </tr> <tr bgcolor="#F5F4FD"> <td>5</td> <td><input name="PageNumber5" type="text" size="10" /></td> <td><input name="ProductCode5" type="text" /></td> <td><input name="Description5" type="text" size="35" /></td> <td><input name="Price5" type="text" size="10" /></td> <td><input name="Quantity5" type="text" size="10" /></td> <td><input name="Total5" type="text" size="10" /></td> </tr> <tr bgcolor="#F5F4FD"> <td>6</td> <td><input name="PageNumber6" type="text" size="10" /></td> <td><input name="ProductCode6" type="text" /></td> <td><input name="Description6" type="text" size="35" /></td> <td><input name="Price6" type="text" size="10" /></td> <td><input name="Quantity6" type="text" size="10" /></td> <td><input name="Total6" type="text" size="10" /></td> </tr> <tr bgcolor="#F5F4FD"> <td>7</td> <td><input name="PageNumber7" type="text" size="10" /></td> <td><input name="ProductCode7" type="text" /></td> <td><input name="Description7" type="text" size="35" /></td> <td><input name="Price7" type="text" size="10" /></td> <td><input name="Quantity7" type="text" size="10" /></td> <td><input name="Total7" type="text" size="10" /></td> </tr> <tr bgcolor="#F5F4FD"> <td>8</td> <td><input name="PageNumber8" type="text" size="10" /></td> <td><input name="ProductCode8" type="text" /></td> <td><input name="Description8" type="text" size="35" /></td> <td><input name="Price8" type="text" size="10" /></td> <td><input name="Quantity8" type="text" size="10" /></td> <td><input name="Total8" type="text" size="10" /></td> </tr> <tr bgcolor="#F5F4FD"> <td>9</td> <td><input name="PageNumber9" type="text" size="10" /></td> <td><input name="ProductCode9" type="text" /></td> <td><input name="Description9" type="text" size="35" /></td> <td><input name="Price9" type="text" size="10" /></td> <td><input name="Quantity9" type="text" size="10" /></td> <td><input name="Total9" type="text" size="10" /></td> </tr> <tr bgcolor="#F5F4FD"> <td>10</td> <td><input name="PageNumber10" type="text" size="10" /></td> <td><input name="ProductCode10" type="text" /></td> <td><input name="Description10" type="text" size="35" /></td> <td><input name="Price10" type="text" size="10" /></td> <td><input name="Quantity10" type="text" size="10" /></td> <td><input name="Total10" type="text" size="10" /></td> </tr> <tr bgcolor="#F5F4FD"> <td> </td> <td> </td> <td> </td> <td> </td> <td><div align="center" class="style1">Total:</div></td> <td> </td> <td><input name="GrandTotal" type="text" size="10" /></td> </tr> <tr bgcolor="#3E55A7"> <td colspan="10" class="style9"> </td> </tr> <tr align="left" valign="top" bordercolor="#FFFFFF" bgcolor="#C7CFE9"> <td colspan="10" class="style10"><br></td> </tr> <tr bgcolor="#3E55A7"> <td colspan="10" class="style13"> </td> </tr> <tr bgcolor="#3E55A7"> <td colspan="10" class="style13"><div align="center"> <p> </p> <input type="submit" value='Submit' class='form_button'> <p> </p> </div></td> </form>
  4. still reloads same page with fields tagged on the url what on earth is wrong with this?
  5. loads page /Order_Form.html?NAME=&ADDRESS=&TOWN=&POSTCODE=&PHONE= etc etc
  6. thanks... im just looking for help to get this code working as i wont need anything this complicated again so trying to 'muddle' through! EDIT: Still doesnt work even with that code
  7. <?php $msg_subject = "Kleeneze Web Order"; $message = " <html> <head> <title>Kleeneze WEB Order</title> </head> <body> $message = "Full Name: {$_POST['NAME']}\n Address: {$_POST['ADDRESS']}\n Town: {$_POST['TOWN']}\n Post Code: {$_POST['POSTCODE']}\n Phone Number: {$_POST['PHONE']}\n Email: {$_POST['email']}\n include("confirm.html") </body> </html>"; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; // More headers $headers .= 'From: <[email protected]>' . "\r\n"; mail($_POST['[email protected]'], $msg_subject, $message, $headers); echo "An Order has been sent. Thank you"; ?>
  8. ?> at the end of the script is not bright red. how can i fix it as it seems to be linked with the body text as its the same burgundy colour following on from my my php form error thread
  9. just noticed there may be an error my ?> at the end of the script is not bright red. how can i fix it as it seems to be linked with the body text as its the same burgundy colour
  10. done it like that and it now reloads the page with the form and adds the field data to the url.??
  11. my form codes are : <form> <form action="process.php" method="post"> blah blah form table stuff <input type="submit" value='Submit' class='form_button'> <p> </p> </div></td> </form>
  12. well how do i make them part of the proceeding strings? ive put the code into net beans to debug it but it doesnt explain how to. the $line bits are to illustrate the next line on the order form as theres 10 lines
  13. Mail function is working on my contact us form, i dont know what you mean by the code stops working at that place or how to put it right. sorry help?
  14. It's got those as another user showed me that way to do it (im new and no use of php before ) the thing is it was processing and the format was fine. now i've finished the script/code to capture all the data and it doesnt work any more. you click the confirm button and it just goes to /process.php rather than the confirm page
  15. My code is below but it wont process, the submit button goes to 'process.php' and not through to confirm.html and send email? -------------------------------------------------------------------------------------- <?php // The message $message = "Full Name: {$_POST['NAME']}\n Address: {$_POST['ADDRESS']}\n Town: {$_POST['TOWN']}\n Post Code: {$_POST['POSTCODE']}\n Phone Number: {$_POST['PHONE']}\n Email: {$_POST['email']}\n $Line 1; Page Number: {$_POST['PageNumber']}\n Product Code: {$_POST['ProductCode']}\n Product Description: {$_POST['Description']}\n Price (£): {$_POST['Price']}\n Quantity: {$_POST['Quantity']}"; Total: {$_POST['Total']}"; $Line 2; Page Number: {$_POST['PageNumber2']}\n Product Code: {$_POST['ProductCode2']}\n Product Description: {$_POST['Description2']}\n Price (£): {$_POST['Price2']}\n Quantity: {$_POST['Quantity2']}"; Total: {$_POST['Total2']}"; $Line 3; Page Number: {$_POST['PageNumber3']}\n Product Code: {$_POST['ProductCode3']}\n Product Description: {$_POST['Description3']}\n Price (£): {$_POST['Price3']}\n Quantity: {$_POST['Quantity3']}"; Total: {$_POST['Total3']}"; $Line 4; Page Number: {$_POST['PageNumber4']}\n Product Code: {$_POST['ProductCode4']}\n Product Description: {$_POST['Description4']}\n Price (£): {$_POST['Price4']}\n Quantity: {$_POST['Quantity4']}"; Total: {$_POST['Total4']}"; $Line 5; Page Number: {$_POST['PageNumber5']}\n Product Code: {$_POST['ProductCode5']}\n Product Description: {$_POST['Description5']}\n Price (£): {$_POST['Price5']}\n Quantity: {$_POST['Quantity5']}"; Total: {$_POST['Total5']}"; $Line 6; Page Number: {$_POST['PageNumber6']}\n Product Code: {$_POST['ProductCode6']}\n Product Description: {$_POST['Description6']}\n Price (£): {$_POST['Price6']}\n Quantity: {$_POST['Quantity6']}"; Total: {$_POST['Total6']}"; $Line 7; Page Number: {$_POST['PageNumber7']}\n Product Code: {$_POST['ProductCode7']}\n Product Description: {$_POST['Description7']}\n Price (£): {$_POST['Price7']}\n Quantity: {$_POST['Quantity7']}"; Total: {$_POST['Total7']}"; $Line 8; Page Number: {$_POST['PageNumber8']}\n Product Code: {$_POST['ProductCode8']}\n Product Description: {$_POST['Description8']}\n Price (£): {$_POST['Price8']}\n Quantity: {$_POST['Quantity8']}"; Total: {$_POST['Total8']}"; $Line 9; Page Number: {$_POST['PageNumber9']}\n Product Code: {$_POST['ProductCode9']}\n Product Description: {$_POST['Description9']}\n Price (£): {$_POST['Price9']}\n Quantity: {$_POST['Quantity9']}"; Total: {$_POST['Total9']}"; $Line 10; Page Number: {$_POST['PageNumber10']}\n Product Code: {$_POST['ProductCode10']}\n Product Description: {$_POST['Description10']}\n Price (£): {$_POST['Price10']}\n Quantity: {$_POST['Quantity10']}"; Total: {$_POST['Total10']}"; Grand Total: {$_POST['GrandTotal']}"; // Send $success = "/confirm.html"; if( mail('[email protected]', 'Online Order', $message) ) { header('Location: ' . $success); exit(); } ?>
×
×
  • 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.