Jump to content

JohnSabol

New Members
  • Posts

    9
  • Joined

  • Last visited

JohnSabol's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ok i made some differences: mailform.php <?php //table $foto = $_POST['foto']; $a4 = $_POST['a4']; $a3 = $_POST['a3']; $othersize = $_POST['othersize']; //mailer $name = $_POST['name']; $email = $_POST['email']; $mailsent = mail ( "mymail@mail.com", "Order: $name", "$message \n \n \n $name \n $email \n \n \n ", ""); if ($mailsent) { echo (" <p class='subcaption'>You sent Mail</p> "); } ?> index.php <!doctype html> <html> <head> <meta charset="windows-1250"> <title></title> <link href="styles/main.css" rel="stylesheet" type="text/css"> <!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.--><script>var __adobewebfontsappname__="dreamweaver"</script><script src="http://use.edgefonts.net/source-sans-pro:n2,n6:default.js" type="text/javascript"></script> </head> <body> <form id="EmailForm" action="mailForm.php" method="post" onsubmit="validateForm()"> <table width="568"> <tr> <td width="280" class="iframe"><label for="Name"> Name: <input type="text" value="" name="name" size="30" /> </label></td> <td width="236"> Mail: <input type="text" value="" name="email" size="30" /></td> </tr> </table> <p class="table"> <table border="0"> <tr> <td width="30"> </td> <td width="120">Foto</td> <td width="30">A4</td> <td width="30">A3</td> <td width="120">Custom size</td> </tr> <tr> <td>1.</td> <td><input name="foto[]" size="20"></td> <td><input name="a4[]" size="5"></td> <td><input name="a3[]" size="5"></td> <td><input name="otherside[]" size="20"></td> </tr> <tr> <td>2.</td> <td><input name="foto[]" size="20"></td> <td><input name="a4[]" size="5"></td> <td><input name="a3[]" size="5"></td> <td><input name="otherside[]" size="20"></td> </tr> <tr> <td>3.</td> <td><input name="foto[]" size="20"></td> <td><input name="a4[]" size="5"></td> <td><input name="a3[]" size="5"></td> <td><input name="otherside[]" size="20"></td> </tr> <tr> <td>4.</td> <td><input name="foto[]" size="20"></td> <td><input name="a4[]" size="5"></td> <td><input name="a3[]" size="5"></td> <td><input name="otherside[]" size="20"></td> </tr> <tr> <td>5.</td> <td><input name="foto[]" size="20"></td> <td><input name="a4[]" size="5"></td> <td><input name="a3[]" size="5"></td> <td><input name="otherside[]" size="20"></td> </tr> <tr> <td>6.</td> <td><input name="foto[]" size="20"></td> <td><input name="a4[]" size="5"></td> <td><input name="a3[]" size="5"></td> <td><input name="otherside[]" size="20"></td> </tr> <tr> <td>7.</td> <td><input name="foto[]" size="20"></td> <td><input name="a4[]" size="5"></td> <td><input name="a3[]" size="5"></td> <td><input name="otherside[]" size="20"></td> </tr> <tr> <td>8.</td> <td><input name="foto[]" size="20"></td> <td><input name="a4[]" size="5"></td> <td><input name="a3[]" size="5"></td> <td><input name="otherside[]" size="20"></td> </tr> <tr> <td>9.</td> <td><input name="foto[]" size="20"></td> <td><input name="a4[]" size="5"></td> <td><input name="a3[]" size="5"></td> <td><input name="otherside[]" size="20"></td> </tr> <tr> <td>10.</td> <td><input name="foto[]" size="20"></td> <td><input name="a4[]" size="5"></td> <td><input name="a3[]" size="5"></td> <td><input name="otherside[]" size="20"></td> </tr> <tr> <td>11.</td> <td><input name="foto[]" size="20"></td> <td><input name="a4[]" size="5"></td> <td><input name="a3[]" size="5"></td> <td><input name="otherside[]" size="20"></td> </tr> <tr> <td>12.</td> <td><input name="foto[]" size="20"></td> <td><input name="a4[]" size="5"></td> <td><input name="a3[]" size="5"></td> <td><input name="otherside[]" size="20"></td> </tr> <tr> <td>13.</td> <td><input name="foto[]" size="20"></td> <td><input name="a4[]" size="5"></td> <td><input name="a3[]" size="5"></td> <td><input name="otherside[]" size="20"></td> </tr> <tr> <td>14.</td> <td><input name="foto[]" size="20"></td> <td><input name="a4[]" size="5"></td> <td><input name="a3[]" size="5"></td> <td><input name="otherside[]" size="20"></td> </tr> <tr> <td>15.</td> <td><input name="foto[]" size="20"></td> <td><input name="a4[]" size="5"></td> <td><input name="a3[]" size="5"></td> <td><input name="otherside[]" size="20"></td> </tr> </table> </p> <table width="509"> <tr> <td height="38" class="iframe"><label for="Name2">Comment:</label></td> </tr> <tr> <td><textarea name="message" rows="5" cols="60"></textarea></td> </tr> <tr> <td colspan="2" style="text-align:center"><!-- We are grateful to you for keeping this link in place. thank you. --> <input type="submit" value="Send"></td> </tr> </table> </form> <p> </p> </body> </html> now i would like to know, how can i get it to mail in this form: (filled out by customer) 1. 1234abc (custom name of photo - loaded from input name="foto[]") A4 - 1x (amount of prints - loaded from input name="A4[]") A3 - 3x (amount of prints- loaded from input name="A3[]") 150x180mm - 1x (custom size field- loaded from input name="customsize[]") 2. 2345def A4 - 2x A3 - 1x 150x180mm - 1x 3. etc etc does it work with POST commant or somelike else?
  2. ok.. i paste here entire code. maybe you gonna laugh about it but its only way i can do it. index.php <!doctype html> <html> <head> <meta charset="windows-1250"> <title>John Sabol</title> <link href="styles/main.css" rel="stylesheet" type="text/css"> <!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.--><script>var __adobewebfontsappname__="dreamweaver"</script><script src="http://use.edgefonts.net/source-sans-pro:n2,n6:default.js" type="text/javascript"></script> </head> <body> <form id="EmailForm" action="mailForm.php" method="post" onsubmit="validateForm()"> <table width="568"> <tr> <td width="280" class="iframe"><label for="Name"> Name: <input type="text" value="" name="name" size="30" /> </label></td> <td width="236"> Mail: <input type="text" value="" name="email" size="30" /></td> </tr> </table> <p class="table"> <table border="0"> <tr> <td width="30"> </td> <td width="120">Foto</td> <td width="30">A4</td> <td width="30">A3</td> <td width="120">Custom size</td> </tr> <tr> <td>1.</td> <td><input type="text" value="" name="foto01" size="20" /></td> <td><input type="text" value="" name="a401" size="5" /></td> <td><input type="text" value="" name="a301" size="5" /></td> <td><input type="text" value="" name="othersize01" size="20" /></td> </tr> <tr> <td>2.</td> <td><input type="text" value="" name="foto02" size="20" /></td> <td><input type="text" value="" name="a402" size="5" /></td> <td><input type="text" value="" name="a302" size="5" /></td> <td><input type="text" value="" name="othersize02" size="20" /></td> </tr> <tr> <td>3.</td> <td><input type="text" value="" name="foto03" size="20" /></td> <td><input type="text" value="" name="a403" size="5" /></td> <td><input type="text" value="" name="a303" size="5" /></td> <td><input type="text" value="" name="othersize03" size="20" /></td> </tr> <tr> <td>4.</td> <td><input type="text" value="" name="foto04" size="20" /></td> <td><input type="text" value="" name="a404" size="5" /></td> <td><input type="text" value="" name="a304" size="5" /></td> <td><input type="text" value="" name="othersize04" size="20" /></td> </tr> <tr> <td>5.</td> <td><input type="text" value="" name="foto05" size="20" /></td> <td><input type="text" value="" name="a405" size="5" /></td> <td><input type="text" value="" name="a305" size="5" /></td> <td><input type="text" value="" name="othersize05" size="20" /></td> </tr> <tr> <td>6.</td> <td><input type="text" value="" name="foto06" size="20" /></td> <td><input type="text" value="" name="a406" size="5" /></td> <td><input type="text" value="" name="a306" size="5" /></td> <td><input type="text" value="" name="othersize06" size="20" /></td> </tr> <tr> <td>7.</td> <td><input type="text" value="" name="foto07" size="20" /></td> <td><input type="text" value="" name="a407" size="5" /></td> <td><input type="text" value="" name="a307" size="5" /></td> <td><input type="text" value="" name="othersize07" size="20" /></td> </tr> <tr> <td>8.</td> <td><input type="text" value="" name="foto08" size="20" /></td> <td><input type="text" value="" name="a408" size="5" /></td> <td><input type="text" value="" name="a308" size="5" /></td> <td><input type="text" value="" name="othersize08" size="20" /></td> </tr> <tr> <td>9.</td> <td><input type="text" value="" name="foto09" size="20" /></td> <td><input type="text" value="" name="a409" size="5" /></td> <td><input type="text" value="" name="a309" size="5" /></td> <td><input type="text" value="" name="othersize09" size="20" /></td> </tr> <tr> <td>10.</td> <td><input type="text" value="" name="foto10" size="20" /></td> <td><input type="text" value="" name="a410" size="5" /></td> <td><input type="text" value="" name="a310" size="5" /></td> <td><input type="text" value="" name="othersize10" size="20" /></td> </tr> <tr> <td>11.</td> <td><input type="text" value="" name="foto11" size="20" /></td> <td><input type="text" value="" name="a411" size="5" /></td> <td><input type="text" value="" name="a311" size="5" /></td> <td><input type="text" value="" name="othersize11" size="20" /></td> </tr> <tr> <td>12.</td> <td><input type="text" value="" name="foto12" size="20" /></td> <td><input type="text" value="" name="a412" size="5" /></td> <td><input type="text" value="" name="a312" size="5" /></td> <td><input type="text" value="" name="othersize12" size="20" /></td> </tr> <tr> <td>13.</td> <td><input type="text" value="" name="foto13" size="20" /></td> <td><input type="text" value="" name="a413" size="5" /></td> <td><input type="text" value="" name="a313" size="5" /></td> <td><input type="text" value="" name="othersize13" size="20" /></td> </tr> <tr> <td>14.</td> <td><input type="text" value="" name="foto14" size="20" /></td> <td><input type="text" value="" name="a414" size="5" /></td> <td><input type="text" value="" name="a314" size="5" /></td> <td><input type="text" value="" name="othersize14" size="20" /></td> </tr> <tr> <td>15.</td> <td><input type="text" value="" name="foto15" size="20" /></td> <td><input type="text" value="" name="a415" size="5" /></td> <td><input type="text" value="" name="a315" size="5" /></td> <td><input type="text" value="" name="othersize15" size="20" /></td> </tr> </table> </p> <table width="509"> <tr> <td height="38" class="iframe"><label for="Name2">Comment:</label></td> </tr> <tr> <td><textarea name="message" rows="5" cols="60"></textarea></td> </tr> <tr> <td colspan="2" style="text-align:center"><!-- We are grateful to you for keeping this link in place. thank you. --> <input type="submit" value="Send"></td> </tr> </table> </form> <p> </p> </body> </html> mailform.php <?php //table $foto01 = $_POST['foto01']; $foto02 = $_POST['foto02']; $foto03 = $_POST['foto03']; $foto04 = $_POST['foto04']; $foto05 = $_POST['foto05']; $foto06 = $_POST['foto06']; $foto07 = $_POST['foto07']; $foto08 = $_POST['foto08']; $foto09 = $_POST['foto09']; $foto10 = $_POST['foto10']; $foto11 = $_POST['foto11']; $foto12 = $_POST['foto12']; $foto13 = $_POST['foto13']; $foto14 = $_POST['foto14']; $foto15 = $_POST['foto15']; $a401 = $_POST['a401']; $a402 = $_POST['a402']; $a403 = $_POST['a403']; $a404 = $_POST['a404']; $a405 = $_POST['a405']; $a406 = $_POST['a406']; $a407 = $_POST['a407']; $a408 = $_POST['a408']; $a409 = $_POST['a409']; $a410 = $_POST['a410']; $a411 = $_POST['a411']; $a412 = $_POST['a412']; $a413 = $_POST['a413']; $a414 = $_POST['a414']; $a415 = $_POST['a415']; $a301 = $_POST['a301']; $a302 = $_POST['a302']; $a303 = $_POST['a303']; $a304 = $_POST['a304']; $a305 = $_POST['a305']; $a306 = $_POST['a306']; $a307 = $_POST['a307']; $a308 = $_POST['a308']; $a309 = $_POST['a309']; $a310 = $_POST['a310']; $a311 = $_POST['a311']; $a312 = $_POST['a312']; $a313 = $_POST['a313']; $a314 = $_POST['a314']; $a315 = $_POST['a315']; $othersize01 = $_POST['othersize01']; $othersize02 = $_POST['othersize02']; $othersize03 = $_POST['othersize03']; $othersize04 = $_POST['othersize04']; $othersize05 = $_POST['othersize05']; $othersize06 = $_POST['othersize06']; $othersize07 = $_POST['othersize07']; $othersize08 = $_POST['othersize08']; $othersize09 = $_POST['othersize09']; $othersize10 = $_POST['othersize10']; $othersize11 = $_POST['othersize11']; $othersize12 = $_POST['othersize12']; $othersize13 = $_POST['othersize13']; $othersize14 = $_POST['othersize14']; $othersize15 = $_POST['othersize15']; //mailer $name = $_POST['name']; $email = $_POST['email']; $mailsent = mail ( "johnsabol55@gmail.com", "Order: $name", "$message \n \n \n $name \n $email \n \n \n ", ""); if ($mailsent) { echo (" <p class='subcaption'>You sent Mail</p> "); } ?>
  3. the issue is, that i want to get mail with filled out table (customer fills table out) and dreamweaver shows me always an syntax error if i do it so: "$message \n \n \n $name \n $email \n <table border="0"> <tr> <td width="30"> </td> <td width="120">Foto</td> <td width="30">A4</td> <td width="30">A3</td> <td width="120">other size</td> </tr> </table> ", ""); i dont do programming so i have NO IDEA how it should be..
  4. it looks like this: http://johnsabol.wz.cz/test/index.php
  5. ok.. i think i should explain what i mean.. this is simple mail sender on the website. the customers fill out the text fields and then they seind it to me pressing the "Send" button. it is on same principle like contact form.
  6. Hi everyone! I would like to get into $mailsent = mail ( "johnsabol55@gmail.com", "Order: $name", "$message \n \n \n $name \n $email \n \n \n ", ""); a table like this: <table border="0"> <tr> <td width="30"> </td> <td width="120">Foto</td> <td width="30">A4</td> <td width="30">A3</td> <td width="120">other size</td> </tr> </table> It shold be between "$message \n \n \n $name \n $email and \n \n \n ", ""); how can i do that? Dreamweaver shows me always an error
  7. thanks. ill move it in that section you adviced me
  8. Hi everybody! i got a big problem. i know just html and i would need help of you all guys. i need to create php script, where i gonna generate 4 text fields at once by clicking on "+" sign. every of text fields gonna have another name, that would showed in mail. theres attachment what i mean: orange coloured font contains fields filled out by customer. red coloured font are the names of inputs. ______ in second image is result what happens, if the customer clicks on "+" sign: Photo nr., A3, A4, Another size fields are appeared at once. the order number is changed, the names are changed (from photonr_1 to photonr_2 etc..) so if the customer click on sign 20 times, it shows 20 lines. the last line changes number to 20. THEN Customer "Timothy" clicks on Send and i get the mail that it look like that: Mail Subject: Order - Timothy Robins Message in mail: 1. 1234 Print: A4 x 5, A3 x 2, Other: 3x 15x18mm 2. 5678 Print: A3 x 1, Message:example, example, example, example, example, ______ There are missing lines like Message or A4 because it wasnt filled out. So my question is: is something like that possible to create? I have no idea how to do it..
×
×
  • 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.