Re: Trying to submit form to frame and pass php var
| From: | Raditha Dissanayake | Date: | Sun, 14 Sep 2003 14:23:52 +0000 |
| Subject: | Re: Trying to submit form to frame and pass php var | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162555@lists.php.net to get a copy of this message | ||
Hi,
you cannot invoke php functions from javascript. You have to pass on any relevent variables (which can be done with hidden input fields) with your POST/GET data to the script for processing on the server.
info@vtwebdesigners.com wrote:
Hello I was wondering if someone could help me out. Trying to submit form to frame and pass php var at the same time. <script language="JavaScript"><!-- function submitform(){ top.admin.document.adminform.submit(); } //--></script> and... <frameset rows="538,83" cols="*"> <frame src="admin.php?order=1" name="admin" id="admin"> <frame src="status.php" name="status" scrolling="auto" id="status"> </frameset>-- http://www.radinks.com/upload Drag and Drop File Uploader.Link look like: <a href="javascript:submitform();"target="_parent">Delete</a> What I need to do though, is run this exact script while passing ($delete=yes) as php at the same time? Basically, run the form and if delete=yes then use the following form tag : <form name=adminform method=post action=setup.php?delete=yes target=_parent> Any ideas? Thanks Brandon