|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
pls take a look guys!
i found a java script code online
<form onSubmit="return checkrequired(this)"> <form action="TDT AFTER(13TH).ASP" method="POST"> the above checkrequired(this) is the java script code it is used to verify is a field is being entered it has to be put into the body of the html code but my body has another form action(which is the next line shown above) it seems tat it will onli run 1 of the action(checking or POST depening on which line i put first)) how shd i place it such tat it will check and when it is ok the it will POST?? thks |
|
#2
|
||||
|
||||
|
simply put it inside the second form also:
<form onSubmit="return checkrequired(this)"> <form action="TDT AFTER(13TH).ASP" method="POST" onSubmit="return checkrequired(this);"> of course, you have to have the function itself somewhere. |
|
#3
|
||||
|
||||
|
<form> elements can't be containers for other <form> elements...
I thought you'd have known that, SW ![]() |
|
#4
|
||||
|
||||
|
I assume he means he has two forms, like this:
<form>first form</form> <form>second form</form> otherwise it's indeed makes no sense! ![]() |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > pls take a look guys! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|