Re: Can you AUTO "Post/Submit" on a mixed HTML/PHP form

From: Date: Thu, 01 Nov 2001 10:32:20 +0000
Subject: Re: Can you AUTO "Post/Submit" on a mixed HTML/PHP form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-73134@lists.php.net to get a copy of this message
In article <20011101095430.31248.qmail@pb1.pair.com>, arthur.bard@btinternet.com (Arf) wrote: > $form_block = " > > <FORM METHOD=\"post\" ACTION=\"$PHP_SELF\"> > > <P><strong>User Name:</strong><br> > <INPUT type=\"text\" NAME=\"sender_name\" > VALUE=\"$sender_name\" > SIZE=30></p> > > <P><strong>Your E-Mail Address:</strong><br> > <INPUT type=\"text\" NAME=\"sender_email\" > VALUE=\"$sender_email\" > SIZE=30></p> > > <P><strong>Message/Problem:</strong><br> > <TEXTAREA NAME=\"message\" COLS=30 ROWS=5 > WRAP=virtual>$message</TEXTAREA></p> > > <INPUT type=\"hidden\" name=\"op\" value=\"ds\"> > > <P><INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\"Send This > Form\"></p> > > </FORM> > > "; FWIW, you can save yourself all that PITA backslashing by using heredoc syntax<http://www.php.net/manual/language.types.string.php>. > What do I need to change in the following line to make the form submit/post > or do I need to change the code in my form. I can't use the JavaScript > onLoad() event handler as I will be calling from VB6. I'm not a VB person, but it's my understanding that VBscript can be invoked with an HTML <script> tag the same way JavaScript can. Just assign language="VBscript" instead of language="JavaScript". Does that help you at all? -- CC

« previous php.general (#73134) next »