Re: Submitting form in new window!

From: Date: Wed, 10 Jul 2002 06:57:28 +0000
Subject: Re: Submitting form in new window!
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-106681@lists.php.net to get a copy of this message
This is JavaScript you need. one example. <FORM NAME="Information"> <INPUT TYPE="text" NAME="TextField" VALUE="Nothing Here"> <INPUT TYPE="submit" NAME="go" VALUE=" Go! " onSubmit="FormSubmit()'"> </FORM> <SCRIPT LANGUAGE="JavaScript" TYPE="JavaScript/Text"> function FormSubmit() { var textfield = Information.TextField.value; var url = "./processForm.php?textfield=" + textfield; window.open(url); } </SCRIPT> OR!!!! just add this to your form tag. TARGET="_blank" "Thomas Edison Jr." <thomasedisonjr@yahoo.com> wrote in message news:20020710052418.26086.qmail@web14108.mail.yahoo.com... > Glory, > > > Attach a javascript event to the submit button > > Something like : > > <input type="submit" name="go" onSubmit=wow();> > > Wherein wow() defines a the window.open function? > > > and also attach the form values to the url. > How do i do this? Because the 3 or 4 form fields i > have, which are Hidden Fields, contain values coming > in from $myrow[stuff], that is, coming in from a > Database Table. How do i define these values up in the > Javascript function in the <head> of the file? > > Thanks, > T. Edison Jr. > > > > __________________________________________________ > Do You Yahoo!? > Sign up for SBC Yahoo! Dial - First Month Free > http://sbc.yahoo.com

« previous php.general (#106681) next »