Jump to content

noobie question


j1979

Recommended Posts

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

Link to comment
Share on other sites

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; ?>'>

Link to comment
Share on other sites

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 ;

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.