hi, thanks for your quick reply,
the site is a joomla website and i'm using a plugin to access the db and its the plugin which creates the syntax {joodb field|id} - that code is telling the script to get the id value from the database, thats how im getting the correct id values
the full form code is
Code:
<h2 class="filter">Waiting List</h2>
<div class="table">
<div class="tbl_headers">
<div class="tbl_header">{joodb orderlink|name|Name}</div>
<div class="tbl_header_small">D.O.B</div>
<div class="tbl_header_small">{joodb orderlink|gym_discipline|Discipline}</div>
<div class="tbl_header_small">{joodb orderlink|school_yr|School Year}</div>
<div class="tbl_header">Contact Number</div>
<div class="tbl_header">Email</div>
</div>
<div class="records">{joodb loop}
<div class="record">
<div class="name">{joodb field|name}</div>
<div class="dob">{joodb field|dob}</div>
<div class="discipline">{joodb field|gym_discipline}</div>
<div class="school">{joodb field|school_yr}</div>
<div class="contact">{joodb field|contact_number}</div>
<div class="contact">{joodb field|email_address}</div>
<a class="deleteRow" onclick="
$.ajax({
type: 'post',
url: "http://www.{WEBSITEDOMAIN}.co.uk/delete.php",
data: {joodb field|id},
});
;" href="#">Delete</a>
</div>
{joodb loop}</div>
</div>
the website it not live yet so its hard to show you the error or the rest of the code as im not sure which code might be effecting the script or where to find it
thanks
Luke