View Single Post
Old 07-20-2005, 08:10 AM   #3 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,694
redhead is on a distinguished road
Normaly you'd do this another way, I'm used to php, so here is an example of that, if you're used to reading another language it should be a breeze to alter to be asp.
PHP Code:
<?php
if(isset($_POST['name'] || isset($_POST['email'])
{
/* handle the submit request */
    
if($_POST['name'] == "")
        
$error_name="<a href=# title='Error in submitted name, it must be filled out'><font color=#FF0000>!</font></a>";
    if(
$_POST['email'] == "")
        
$error_email="<a href=# title='Error in submitted email, it must be filled out'><font color=#FF0000>!</font></a>";
    if(!isset(
$error_name) && !isset($error_email))
    {
        
/* do the submitting and all that */
        
echo "Thanks for your submitting";
        exit;
    }
}
echo 
"
<form action='$PHP_SELF'>
$error_name
<input type='text' name='name' value='$_POST[name]'>
$error_email
<input type='text name='email' value='$_POST[email]'>
<input type='submit'>"
;
?>
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote