Give your complete code let me check Thanks, Muthukumar Selvarasu, Project Manager (Web Development), Webmasters Ltd. -----Original Message----- From: sudhakar [mailto:finals27@xxxxxxxxx] Sent: Friday, January 04, 2008 1:07 AM To: muthukumar_se@xxxxxxxxxxx Subject: Fwd: RE: question about displaying select and radio button thanks for providing the code for select and radio button i tried passing the variable with the 2 options you suggested however they are not working. i already have a form tag above the check availability link i tried using a new form tag just above the check availability link however when i click this link the browser is picking up the file specified in form action from the form tag that is defined in the first instance not the new form tag. the code for the first form tag is = <form id="form1" name="registrationform" method="post" action="http://website/php/confirmerranzregistration.php" onSubmit="return validateform()"> code for the second form just before the check availability link is = <form name="form1" id="form1" action="php/checkusername.php" method="get"> <input type="text" id="username" name="username" > <a href="javascript: document.form1.submit( );">check availability</a> </form> the functionality i am implementing here is, before a user fills out a form to register they choose a username and instead of informing the user that a username already exists in the database in the next page where a user has to choose a different one, i would like to provide a link beside the username textfield where the user would enter a desired username and click on the link, this link would open a php file called checkuser.php in a new pop up window and would display a simple message that the user name is available or already exists in the database. please advice about the code to call the checkuser.php file before the user fills the form and clicks the submit button. thanks Note: forwarded message attached. ____________________________________________________________________________ ________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ