how to insert php variables inside the form action

i need to create a form which can be insert a php variable inside the action the example is here

<form name="form" method="post" action="order_cart.php?id=<?php echo '$.prod_diay.' ?>" >

Answer

<form name="form" method="post" action="order_cart.php?id=<?php echo '$.prod_diay.' ?>" >

becomes

<form name="form" method="post" action="order_cart.php?id=<?php echo $prod_diay ?>" >

Notice the quotes missing around $.prod_diay.

Leave a Reply

Your email address will not be published. Required fields are marked *