Jump to content

Text Submit Button To Send Form Data To Popup


Jeevan25
 Share

Recommended Posts

i have a form. i made it so that when you press the submit button it opens a popup and enters the data there. that's fine. but instead of submit button, i want submit text link. but the prolem is that the text link submit is not sending data to the pop up.code of form.<form action="action.php" method="post" name="pform" onsubmit="popupform(this, 'join')"> function popupform(myform, windowname){ if (! window.focus) { return true; } window.open('', windowname, 'height=200,width=400,scrollbars=yes'); myform.target=windowname; return true;}the code to submit using text link<a href="#" onClick="document.pform.submit(); return false;" >submit</a> any help? thanks.

Link to comment
Share on other sites

but instead of submit button, i want submit text link. but the prolem is that the text link submit is not sending data to the pop up......the code to submit using text link<a href="#" onClick="document.pform.submit(); return false;" >submit</a> .....any help? thanks.
People often forget about the css aspects... all you really need to do is style a submit button to remove the borders and background color (forget about using the 'a' link to submit) like so:
<input type="submit" value="This Is A Submit Button That Looks Like Text Only" style="border:0; background-color:transparent;" />

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...