Jump to content

Lectrician

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by Lectrician

  1. Thanks, Thats what I was thinking of doing with the javascript. I was trying to use this instead <form name="myform" method="post" action="recieve.php"> <input type="hidden" name="user" value="$user"> <script language="JavaScript">document.myform.submit();</script></form> Thing is, the $user variable can only be used in the PHP tags. It doesn't work in the HTML after the PHP code I have. Do I need to write the form into the PHP tags using "print"? When I try this I get parse errors?
  2. I am developing some code in PERL as this is what my site runs with. However, I want to use some PHP code to do some image manipulation. I have a form created with perl which is submitted to a PHP script. So far this script is VERY simple! The script takes the form elements and outouts them into a redirect url (for example www.myurl.com/cgi-bin/script.pl?name=tom;age=20) I am doing this as I want the submitted form from the perl script to goto the PHP script, run through the script and then redirect back to the perl script with the data. I would prefer not to place the form element data into the URL in the redirect back to the perl script. So, my question....... Can you use perl to automatically submit a form with hidden elements? I have tried creating a form and using javascript to submit it, but I have trouble getting HTML, PHP and JAVASCRIPT running together! I am VERY new to PHP! Any help appreciated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.