Hi everyone and thanks for reading.
I'll give you a quick insight into my project and desired goal. I've a client who wants a purchase order system that will send purchase orders in the form of emails, and log them into a database. PHP and SQL are my core skills but I've not had much exposure to JavaScript and the AJAX revolution!
What I'm wanting to accomplish is to have an HTML form that has rows of items to be ordered. A row would contain a reference field, a description field and a quantity field. I want the client to be able to add and delete rows as they please, so if the client is ordering four things this time, and I've hard-coded two rows in, then they could press an add button twice to get two more rows to appear. Also if there was some way of deleting the rows too, that'd be great.
I've attached a sample form below to give you all an idea of the HTML involved, it's simple enough!
<form id="purchaseOrder" name="purchaseOrder" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<label for="reference01">Reference</label>
<input name="reference01" id="reference01" type="text" />
<label for="quantity01">Quantity</label>
<input name="quantity01" id="quantity01" type="text" />
<label for="details01">Details</label>
<input name="details01" id="details01" type="text" />
<br /> <br />
<label for="reference02">Reference</label>
<input name="reference02" id="reference02" type="text" />
<label for="quantity02">Quantity</label>
<input name="quantity02" id="quantity02" type="text" />
<label for="details02">Details</label>
<input name="details02" id="details02" type="text" />
</form>
Thanks very much everyone,
Anthony