If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

if you did your validation on a processed page, then you need to change

Code:

Response.Write "<td>" & recordset("ID") & "</td>"

to

Code:

Response.Write "<tr><td>" & recordset("ID") & "</td>"

if you are running validation on yoru asp source code, then you shouldnt be. have it validate a valid url for your page or paste in the resulting html from the source of your page as viewed in a web browser

(a) You have no matching <font> tag.
(b) Even if you did, the <font>...</font> pair should be *INSIDE* one of your <td>...</td> pairs.
(c) And even at that the <font> tag is deprecated; you should be setting a style, instead.

An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.

well, since you are already using jQuery for the modal , Im guessing that you also want to submit the data while avoiding a page refresh? First program the popup form to work by submitting it's data to addrecords1.asp . once you have that working, then you can leverage jQuery to do it without a page refresh. here is a basic example

Code:

$("#idOfMyForm").submit(function(e) {
e.preventDefault(); // prevent page refresh
var myData = $(this).serialize(); // turns all form values into a querystring
$.ajax({
type: "POST",
url: "addrecords1.asp",
data: myData ,
success: function() {
//do stuff here like show a window stating Record submitted!, then close your modal window
//this is also where you can add some code to update the table shown on the page while avodiing page refresh
}
});
})

to make it work the "normal" way? yes. If you make that oen change, once you click on the button, you should then be forwarded to the addrecords page and get the record added message if you put one in there. ( currently addrecords1.asp will process without any data and return the record added response, but I doubt it's adding a blank record so you probabaly need some help working that out too - in the asp forum of course) Take baby steps, get the form working the regular way ( you can technically skip this part but then your form doesnt work for peopel that have javascript disabled) , then you can start fudging with the jQuery code i provided, in order to submit the data via ajax to avoid a page refresh and being directed to the addrecords1.asp.

once you get that far, then you can get some help updating your table view on the dis-play page also using an ajax call. ( baby steps , trust me)