how to pass php variable value to action attribute of html form
        Posted  
        
            by MAS1
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by MAS1
        
        
        
        Published on 2010-04-26T08:06:46Z
        Indexed on 
            2010/04/26
            8:13 UTC
        
        
        Read the original article
        Hit count: 279
        
hi, i want to pass php variable value as a action to html form. i am trying as follows, but it is not working.
<?php
$url='test.php';
?>
<html>
<body>
<form name="upload" action="'<?=$url?>'" method="post" >
<input type="submit" value="submit">
</form>
</body>
</html>
All this code are in one php file.
© Stack Overflow or respective owner