为什么我不能将值从html传递给perl?并且无法从perl脚本中打印html? [英] how come i cant pass value from html to perl? And cant print html from perl script?

查看:68
本文介绍了为什么我不能将值从html传递给perl?并且无法从perl脚本中打印html?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我的html代码是sno 1)和perl代码是sno 2)。


a)我试图打印$ filename并且它不能打印出值,只显示空白,并且无法上传文件。它在perl脚本执行后没有显示html。使用perl 5.1和apache 2.2.9版本(apache安装并运行没有任何错误且没有警告,perl测试正常)


b)另外,当我点击html代码提交上传时对于该文件,浏览器会提示我打开perl脚本,而不是让它在我预期的后台运行。


请协助!!



谢谢,

Andrew


1)html代码

Hi All,

my html code is sno 1) and perl code is sno 2).

a) I tried to print $filename and it cant print out the value, only blank was displayed, and the file could not be uploaded. And it didnt display the html after the perl script executed. Using perl 5.1 and apache 2.2.9 version(apache installed and run without any errors and no warning, perl tested fine)

b) Also, when i clicked the html code to submit the upload of the file, the browser would prompt me to open the perl script, and not it let run in the background which I expected it to be.

Kindly assist!!


Thanks,
Andrew

1) html code

展开 | 选择 | Wrap | 行号

推荐答案

文件名及其无法打印出该值,仅显示空白,并且无法上载文件。它在perl脚本执行后没有显示html。使用perl 5.1和apache 2.2.9版本(apache安装并运行没有任何错误且没有警告,perl测试正常)


b)另外,当我点击html代码提交上传时对于该文件,浏览器会提示我打开perl脚本,而不是让它在我预期的后台运行。


请协助!!



谢谢,

Andrew


1)html代码

filename and it cant print out the value, only blank was displayed, and the file could not be uploaded. And it didnt display the html after the perl script executed. Using perl 5.1 and apache 2.2.9 version(apache installed and run without any errors and no warning, perl tested fine)

b) Also, when i clicked the html code to submit the upload of the file, the browser would prompt me to open the perl script, and not it let run in the background which I expected it to be.

Kindly assist!!


Thanks,
Andrew

1) html code

展开 | 选择 | Wrap | 行号


我不确定你是哪个教程阅读,但这是错误的:

I''m not sure which tutorial you read, but this is wrong:

展开 | 选择 | Wrap | 行号


你的perl脚本看起来会在这里中止:

Your perl script looks like it will abort here:

展开 | 选择 | Wrap | 行号


这篇关于为什么我不能将值从html传递给perl?并且无法从perl脚本中打印html?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆