Page 2 of 2
Posted: Mon Jul 12, 2004 10:57 am
by Lucnet
Ok, it is working. I missed one }. Hey since you know how to get the if to work. How hard would it to make the add testimonial and generate code display where the testimonials do when the links are clicked for that.
Posted: Mon Jul 12, 2004 11:17 am
by Lucnet
Disregard the first msg for minute. I would like to get the rest of the info to appear in the same place that the one we just added. Like when I click approved it will appear at the top like the add testimonial did. How can I get the else if to work with those. I changed all the other pagemessages to a different number like 1-7. But I can't seem to get the else if to work. How would I add the else if?
Posted: Mon Jul 12, 2004 11:39 am
by Lucnet
Well sorry to post so many but I got the else if to work.
Do I need to post a new thread to get help on this:
Since you know how to get the if to work. How hard would it to make the add testimonial and generate code display where the testimonials do when the links are clicked for that.
Posted: Mon Jul 12, 2004 6:03 pm
by pickle
To answer your original question, you can do an "onsubmit" call.
Code: Select all
<html>
<head>
<script language = "javascript/css">
function confirm_form()
{
return(confirm('Are you sure you want to submit this form?'));
}
</script>
</head>
<body>
<form name = "test_form" method = "POST" action = "$PHP_SELF" onsubmit = "return confirm_form();">
<input type = "submit" name = "submit_button" value = "test confirmation">
</form>
</body>
</html>
Posted: Mon Jul 12, 2004 6:51 pm
by Lucnet
Thanks