How to post/get div with php value in another form?

staples

New member
I have <div id='code'> <?php echo '$code'; ?> </div> in a form and i want to show the value of that div in another form. I tried using $_GET['code'] but it says undefined index code.. Please help thanks.
 
Back
Top