DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Perl (http://www.daniweb.com/forums/forum112.html)
-   -   Getting a value into HTML form. (http://www.daniweb.com/forums/thread30536.html)

shiq Aug 14th, 2005 11:33 pm
Getting a value into HTML form.
 
Hello,

I've a question: is it possible to pass a variable from perl script to HTML form.
I want this variable $ztable value to be send to this form.
<input name="dirname" size=15> its post method form.

Thank you in advance.

Rashakil Fol Aug 14th, 2005 11:37 pm
Re: Getting a value into HTML form.
 
Quote:

Originally Posted by shiq
Hello,

I've a question: is it possible to pass a variable from perl script to HTML form.
I want this variable $ztable value to be send to this form.
<input name="dirname" size=15> its post method form.

Thank you in advance.

What is stopping you from something like

print "<input name=\"dirname\" size=15 value=\"$ztable\">"

(Assuming you've already replaced <, >, &, and " in $ztable with &lt;, &gt;, &amp;, and &quot;)

shiq Aug 16th, 2005 11:48 pm
Re: Getting a value into HTML form.
 
Hello,

Sorry, I was not able to put forward my question properly.
I mean i want to export this variables value to the external html form (upload_file.html)
which is under the menubar of this perl script.
This html-form is not inside the script it's external.
Any way?


All times are GMT -4. The time now is 3:06 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC