j1979 Posted May 17, 2010 Share Posted May 17, 2010 hello all, i hope someone can help, i am trying to make a PHP variable from a hidden form variable. the page already has the value i need and the correct value is displayed. <span class='summary betrag_rechts'> <span id='summary_total'>total <span> ".$this->currency."</span></span> <input type='hidden' name='tbclient[total]' value='total'> </span><br /> but i need the value of "total" as a $php type variable. is this possible? thanks Quote Link to comment Share on other sites More sharing options...
trq Posted May 17, 2010 Share Posted May 17, 2010 This has what to do with Ajax? If you already have an echo statement echoing your form (its VERY unclear from your snippet) then its simply.... <input type='hidden' name='tbclient[total]' value='$total'> otherwise..... <input type='hidden' name='tbclient[total]' value='<?php echo $total; ?>'> Quote Link to comment Share on other sites More sharing options...
j1979 Posted May 18, 2010 Author Share Posted May 18, 2010 This has what to do with Ajax? If you already have an echo statement echoing your form (its VERY unclear from your snippet) then its simply.... <input type='hidden' name='tbclient[total]' value='$total'> otherwise..... <input type='hidden' name='tbclient[total]' value='<?php echo $total; ?>'> yes my post is perhaps a little unclear. the original line of code works, and does have the echo statment. what i want to do is capture the value of <input type='hidden' name='tbclient[total]' value='total'>. i need this because i need to send a session variable in the $format. something like session_start(); $total = <input type='hidden' name='tbclient[total]' value='total'>; $_SESSION['paypal'] = $total ; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.