[nycphp-talk] Can this be done with PHP or JavaScript? Is it even possible?
Anirudh Zala
zala007 at hotmail.com
Mon Jul 22 12:32:45 EDT 2002
Hello Steven
well u can do so
but don't put from vars outside from tag.
when u want to transfer vars of 1 from to other or so..
use javascipt method or properties like this
document.FROM1.VARNAME.value=document.FROM2.VARNAME.value;
so put your global 2-3 vars in 1 main form tag and then pass them values to
other forms using javascript.
or so..this is just simple example..u pls explore more on this.
Thanks
Anirudh Zala
>From: SolTek <soltek at mac.com>
>Reply-To: talk at nyphp.org
>To: NYPHP Talk <talk at nyphp.org>
>Subject: Re: [nycphp-talk] Can this be done with PHP or JavaScript? Is it
>even possible?
>Date: Fri, 19 Jul 2002 20:58:09 -0400
>Received: from mc1-f24.law16.hotmail.com ([65.54.236.31]) by
>mc1-s18.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.4905); Fri, 19
>Jul 2002 18:02:38 -0700
>Received: from slipdisc.virul.net ([66.114.66.188]) by
>mc1-f24.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.4905); Fri, 19
>Jul 2002 18:01:29 -0700
>Received: from nyphp.org (slipdisc.virul.net [66.114.66.188])by
>slipdisc.virul.net (8.11.6/8.11.6) with ESMTP id g6K0w9P57131;Fri, 19 Jul
>2002 20:58:09 -0400 (EDT)(envelope-from listmaster at nyphp.org)
>Message-Id: <200207200058.g6K0w9P57131 at slipdisc.virul.net>
>X-Paralist-Archived:
><http://nyphp.org/list/paralist_archive.html?L_mid=763>
>X-List-Software: Paralist 0.6
>List-ID: <nyphptalk.nyphp.org>
>List-Owner: <mailto:listmaster at nyphp.org>
>List-Archive: <http://nyphp.org/list/paralist_archive.html?L_lid=1>
>List-Subscribe: <http://nyphp.org/list/>
>List-Unsubscribe: <http://nyphp.org/list/>
>Organization: New York PHP
>X-Mailer: Paramail 0.5
>Return-Path: listmaster at nyphp.org
>X-OriginalArrivalTime: 20 Jul 2002 01:01:29.0790 (UTC)
>FILETIME=[FB4BC5E0:01C22F88]
>
>Sorry to stir up such a debate earlier, but I still do need help. :-)
>Maybe someone can assist me. I'm actually just learning PHP and was
>hoping to concentrate on that before learning anything else. But it
>seems I may not have a choice.
>
>I'm thinking this can only be done with JavaScript, but maybe I'm wrong.
>
>Is there a way I can get form values that are on the same html page as a
>form but outside of the form tags, and then pass them along with the
>rest of a forms values when a submit button of a form is clicked? The
>page must contain multiple forms. Each form will contain different
>hidden values and a submit button. The form values outside of the form
>tags will be associated with every form on the page which is why they
>must also be sent along with the rest of the particular form's hidden
>values. To help illustrate this I've included and commented the HTML
>code I'm using below.
>
>Many thanks to anyone who could help out!
>- Steve
>
><p>STEP 1. ENTER YOUR DOMAIN NAME:
><!-- These values are associated with every form below -->
><input type="hidden" name="OptionName" value="Domain">
><input type="text" name="OptionValue" size="25"></p>
>
><p>STEP 2. CHOOSE A PLAN:</p>
><!-- Each plan must be in it's own individual form tags -->
><form action="https://domain.com/cgi-bin/webscr" method="post">
><p>PLAN A 3 MONTHS
> <input type="hidden" name="item" value="PA03">
> <input type="hidden" name="amount" value="74.85">
> <input type="submit" name="submit"></p></form>
>
><form action="https://domain.com/cgi-bin/webscr" method="post">
><p>PLAN A 6 MONTHS
> <input type="hidden" name="item" value="PA06">
> <input type="hidden" name="amount" value="137.70">
> <input type="submit" name="submit"></p></form>
>
><form action="https://domain.com/cgi-bin/webscr" method="post">
><p>PLAN A 12 MONTHS
> <input type="hidden" name="item" value="PA12">
> <input type="hidden" name="amount" value="239.40">
> <input type="submit" name="submit"></p></form>
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
More information about the talk
mailing list