[thelist] Form submit question

Peter-Paul Koch gassinaumasis at hotmail.com
Wed Jan 3 05:40:08 CST 2001



>The theory is that the thanks.html (actually thanks.asp) page will sort all
>that out; decide if the email address is correct, see if it already exists
>in the database, add it, thank the user, etc.
>
>So, it occurs to me that POSTing to bottom.html is useless.  I need to POST
>to thanks.asp.  But I need thanks.asp to be in a seperate window.

Try

<FORM ACTION="thanks.asp" onSubmit="submitIt()">

function submitIt()
{
var newwin = window.open('','thename','thearguments');
  document.forms[0].target = 'newwin' (or 'thename', not sure)
  document.forms[0].submit();
}

ppk

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





More information about the thelist mailing list