I have found that following HTML form code
<form action="<?php foo(bar)?>" method="post" enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file"><br>
<input type="submit" name="submit" value="submit">
</form>
works fine when foo(bar)
is a function available in the current scope.
I am very new to php and html and couldn't find any documentation of this functionality online. Are there any downsides of using <?php foo(bar)?>
instead of calling a script file foo.php
?