Can have form action something like this:
<form method=post action="$myvariable">
<input type=text value="$myvariable">
How to do this? No matter way, javascript also can be used to get $myvariable (form action).
Can have form action something like this:
<form method=post action="$myvariable">
<input type=text value="$myvariable">
How to do this? No matter way, javascript also can be used to get $myvariable (form action).
Not sure what you're trying to do, but when you use PHP within HTML, it has to be enclosed in the PHP tags, so you would do something like this:
<form method=post action="<?php echo $myvariable; ?>">
<input type=text value="<?php echo $myvariable; ?>">