Hello World (from a form)

Try online Examples

This time we will be calling the Aptilis programme from a form.
Here's what the HTML looks like:

<FORM action="/cgi-bin/aptilis.exe" method="POST">
<INPUT type="hidden" name="file" value="/home/scripts/hello2.e.txt">

<INPUT type="submit" value="Hello?">
</FORM>

And now, the Aptilis programme, saved as 'hello2.e.txt', it's actually the same as the previous one.

sub main

	print("Content-type: text/plain\n\n")
	print("Hello World!")

end main

Things learnt