9 Replies - 618 Views - Last Post: 27 April 2012 - 01:31 PM Rate Topic: -----

#1 daonlyillwiz  Icon User is offline

  • D.I.C Head

Reputation: -10
  • View blog
  • Posts: 150
  • Joined: 14-March 11

PHP/HTML Im PUZZLED..

Posted 27 April 2012 - 12:54 PM

The scenario goes as follows. I am in the process of creating a website for my company and the only thing that has me confused is where this "submit" button on the bottom of the page takes you. I would like to know is where the "Submit" button takes you to ?


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>Agra-Services Remote Invoicing</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<link href="remoteInvoiceScreen.css" rel="stylesheet" type="text/css" media="screen">
<link href="remoteInvoicePrint.css" rel="stylesheet" type="text/css" media="print">
<script language="Javascript">
function disableEnterKey(e)
{
     var key;

     if(window.event)
          key = window.event.keyCode;     //IE
     else
          key = e.which;     //firefox

     if(key == 13)
          return false;
     else
          return true;
}
</script>
</head>
<body>
<div align="center"><div class="outer" align="left"><span style="font-size: larger; font-weight: bold;">Agra-Services Remote Invoice Entry</span><br><br>
<form name="remoteInvoice" action="/remoteInvoice.php" method="POST">
Use this page to create your electronic invoices to Agra-Services. The accounting staff at Agra-Services will receive your invoice when you click the Submit Invoice button and will be able to process the payment within one business day of getting your transmission.<br><br><span style='color:red; background-color: #FFF;'><strong>Please correct the following errors:</strong><br><ul><li><strong>Item 1</strong> missing service</ul></span><br><strong>Step 1 - Select your company name.</strong><br><br>
Note: if your company is not on the list, please <a href="remoteInvoiceAddFirm.php">create an account for your firm</a>.<br><br>
<select name="firmName" size="1"><option value="" selected>--- Select Company Name ---</option>
<option value='Cordoba's Enterprises co.'>Cordoba's Enterprises co.</option>
<option value='R.L. Courier Services Inc.'>R.L. Courier Services Inc.</option>
<option value='Willy Express Inc.'>Willy Express Inc.</option>
	</select><br><br>
	<strong>Step 2 - Enter up to 25 invoice items.</strong><br><br>
	Note: if you have more than 25 invoice items, please create additional invoices as needed<br><br>
	<table border="1" cellspacing="0" cellpadding="4">
	<tr><td><strong>Item #</strong></td><td><strong>Service</strong></td><td><strong>Agra Reference #</strong></td><td align="right"><strong>Amount (nnnnn.nn)</strong></td></tr><tr><td align='center'>1</td><td><select name='service1' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref1" value="2344322" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount1" value="43" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>2</td><td><select name='service2' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref2" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount2" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>3</td><td><select name='service3' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref3" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount3" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>4</td><td><select name='service4' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref4" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount4" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>5</td><td><select name='service5' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref5" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount5" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>6</td><td><select name='service6' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref6" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount6" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>7</td><td><select name='service7' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref7" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount7" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>8</td><td><select name='service8' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref8" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount8" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>9</td><td><select name='service9' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref9" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount9" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>10</td><td><select name='service10' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref10" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount10" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>11</td><td><select name='service11' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref11" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount11" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>12</td><td><select name='service12' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref12" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount12" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>13</td><td><select name='service13' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref13" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount13" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>14</td><td><select name='service14' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref14" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount14" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>15</td><td><select name='service15' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref15" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount15" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>16</td><td><select name='service16' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref16" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount16" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>17</td><td><select name='service17' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref17" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount17" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>18</td><td><select name='service18' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref18" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount18" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>19</td><td><select name='service19' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref19" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount19" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>20</td><td><select name='service20' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref20" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount20" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>21</td><td><select name='service21' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref21" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount21" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>22</td><td><select name='service22' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref22" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount22" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>23</td><td><select name='service23' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref23" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount23" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>24</td><td><select name='service24' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref24" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount24" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr><tr><td align='center'>25</td><td><select name='service25' size='1'><option value='' selected>--- Select Service ---</option>
<option value='Breakdown Fee'>Breakdown Fee</option>
<option value='Freight (Import)'>Freight (Import)</option>
<option value='USDA attendance'>USDA attendance</option>
<option value='Entry Clearance'>Entry Clearance</option>
<option value='General Attendance'>General Attendance</option>
<option value='Cartage / Trucking Fee'>Cartage / Trucking Fee</option>
</select></td>
<td><input type="text" name="ref25" value="" size="15" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
<td align="right">$<input type="text" name="amount25" value="" size="10" maxlength="15" onkeypress="return disableEnterKey(event)"></td>
</tr></table><br><br>
<input type="submit" name="submit" value="SUBMIT INVOICE"> &nbsp;&nbsp;<input type="reset" name="reset" value="CLEAR FORM">
</form></div></div>
</body>
</html>


Is This A Good Question/Topic? 0
  • +

Replies To: PHP/HTML Im PUZZLED..

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3480
  • View blog
  • Posts: 10,027
  • Joined: 08-June 10

Re: PHP/HTML Im PUZZLED..

Posted 27 April 2012 - 12:57 PM

the submit button takes you to the URI that is specified in the respective <form>’s action attribute.
Was This Post Helpful? 0
  • +
  • -

#3 daonlyillwiz  Icon User is offline

  • D.I.C Head

Reputation: -10
  • View blog
  • Posts: 150
  • Joined: 14-March 11

Re: PHP/HTML Im PUZZLED..

Posted 27 April 2012 - 01:02 PM

Im having a hard time spotting this. Im trying to change the value of the submit button to mailto:certainemailaddress.
Was This Post Helpful? 0
  • +
  • -

#4 CTphpnwb  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2889
  • View blog
  • Posts: 10,003
  • Joined: 08-August 08

Re: PHP/HTML Im PUZZLED..

Posted 27 April 2012 - 01:05 PM

If you want the server to send an email on submit then you're going to need to write some server side code (PHP).
Was This Post Helpful? 0
  • +
  • -

#5 daonlyillwiz  Icon User is offline

  • D.I.C Head

Reputation: -10
  • View blog
  • Posts: 150
  • Joined: 14-March 11

Re: PHP/HTML Im PUZZLED..

Posted 27 April 2012 - 01:08 PM

Ok, looks like i dont know how to do that. I am creating an online form for my company, this is something i dont normally do however i chose to embark on the challenge. Any tips would be helpful, also anyone experienced with DreamWeaver please chime in if you have any ideas on how to do this on that platform.
Was This Post Helpful? 0
  • +
  • -

#6 CTphpnwb  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2889
  • View blog
  • Posts: 10,003
  • Joined: 08-August 08

Re: PHP/HTML Im PUZZLED..

Posted 27 April 2012 - 01:11 PM

You're in too deep. You shouldn't tackle a project that involves money if you're new to web development.
Was This Post Helpful? 1
  • +
  • -

#7 daonlyillwiz  Icon User is offline

  • D.I.C Head

Reputation: -10
  • View blog
  • Posts: 150
  • Joined: 14-March 11

Re: PHP/HTML Im PUZZLED..

Posted 27 April 2012 - 01:14 PM

I do database management/systems management here and i managed to get the new page completed via dreamweaver but the only thing thats got me stuck is the submit button unfortunately. I do have an HTML/C++/Java background but this has me lost as of the moment. Im sure if i give my eyes some rest i will figure it out.
Was This Post Helpful? 0
  • +
  • -

#8 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3480
  • View blog
  • Posts: 10,027
  • Joined: 08-June 10

Re: PHP/HTML Im PUZZLED..

Posted 27 April 2012 - 01:15 PM

a) the submit button’s value (or any other of its attributes) does in no way influence to where the form is submitted. this is the task of the <form> element.

b) Dreamweaver is an IDE, not a platform a website would run (except for development and testing, and even then it’s the included browser and server that do it)

c) for sending mails I recommend a mailing library like SwiftMailer or PHPMailer (though it looks more complicated than PHP’s mail() function, advanced functionality (mail servers, HTML mails, attachments, etc.) is easier to set up — and you can send emails more reliably)

This post has been edited by Dormilich: 27 April 2012 - 01:16 PM

Was This Post Helpful? 0
  • +
  • -

#9 daonlyillwiz  Icon User is offline

  • D.I.C Head

Reputation: -10
  • View blog
  • Posts: 150
  • Joined: 14-March 11

Re: PHP/HTML Im PUZZLED..

Posted 27 April 2012 - 01:17 PM

Actually just got it, i changed the <form>element to mailto:xxxxxxx and it worked out PERFECTLY. Thanks alot!

This post has been edited by daonlyillwiz: 27 April 2012 - 01:18 PM

Was This Post Helpful? 0
  • +
  • -

#10 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3480
  • View blog
  • Posts: 10,027
  • Joined: 08-June 10

Re: PHP/HTML Im PUZZLED..

Posted 27 April 2012 - 01:31 PM

it only works when the user has a mail user agent (a programme to send an emeil). with the mailto: protocol you just shove the responsibility of sending the mail to someone else, so getting the mail is in no way guaranteed.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1