[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Script to check an image file- almost finish :)
****** message to minivend-users from "Pumin Wuvanich" <pumin@hotmail.com> ******
Hi folks,
I write this small script to enable web user to check if an image is
already in the directory. In theory, it should work, but, i don't know
why it doesn't work.
Can anyone tell me what i do wrong? Thank you very very much.
Pumin
--------------------------
CheckImage.html
--------------------------
<HTML><HEAD>
<TITLE>Check File</TITLE>
</HEAD>
<FORM METHOD=POST ACTION="[process-target]">
<INPUT TYPE=hidden NAME=mv_subroutine VALUE="CheckFile">
<INPUT TYPE=hidden NAME=mv_arg0 VALUE=file>
<INPUT TYPE=hidden NAME=mv_doit VALUE=return>
<INPUT TYPE=hidden NAME=mv_nextpage VALUE=report>
<INPUT TYPE=text NAME=file >
<INPUT TYPE=submit VALUE="Submit">
</FORM>
[set CheckFile]
my ($file) = @_;
[if file /httpd/html/simple/images/$file]
return 'The file is there';
[/if]
return 'The file is not there';
[/set]
</BODY>
</HTML>
-----------------------
report.html
----------------------
<HTML>
<HEAD><TITLE>REPORT</TITLE></HEAD>
<BODY> REPORT: [data session return_value] </BODY>
</HTML>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list