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.

Recommended Answers

All 2 Replies

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;)

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.