|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Making the form hidden/invisible after validation
Hello!
I have a registration form on the page. After the form I have an ASP code that collects the information, validates it and after the validation inserting the data to the DB and sending a confirmation email and presenting a Welcome message. It all happens on the same page. Now what I want, is after everything was validated and the email was sent, I want to hide the form, make it invisible. How can this be done? In the past I used to have this JavaScript code on my page: Code:
<SCRIPT LANGUAGE=javascript>
function show_hide(msg_id){
msg_id.style.display=msg_id.style.display=="none" ? "" : "none"
}
</SCRIPT>
Then I had a link with this code: Code:
<A href=javascript:show_hide(readcomments) class="menulink">Read comments</a> And I had a TD tag with an ID "readcomments": Code:
<td id=""readcomments"" style=""display:none; ""> So I had to click on the link to make this TD invisible. Perhaps it can be done automatically, without clicking the link? Or is there another way? Thank you very much! |
|
#2
|
|||
|
|||
|
is it not possible on your page just to use redirection after validating your form?
Code:
<% response.redirect = "page.asp?showform=yes" %>
'===========
<%
showform = "yes";
if showform = request.querystring("yes") then
%>
<form></form>
<%end if%>
|
|
#3
|
|||
|
|||
|
Quote:
I'm not very good with it, so I didn't exactly understand where would I put this code? If I use the redirection, wouldn't the Welcome message disappear? Could you take a look at my code, please? I'm attaching zipped ASP file... The messages there are in Hebrew. Thank you! |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Making the form hidden/invisible after validation |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|