No you can't. because then that's going to be read as:

<form action="1">

or if you have a value already set for num, it'll have that value + 1 in there. All this will happen as the page is being sent to the browser. So no, it won't work.