<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: PHP - multiplying variable by 5</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: PHP - multiplying variable by 5</description>
<language>en</language>
<pubDate>Sat, 20 Jun 2026 17:55:39 +0000</pubDate>

<item>
<title>neilo on "PHP - multiplying variable by 5"</title>
<link>https://www.machform.com/forums/topic/php-multiplying-variable-by-5#post-7474</link>
<pubDate>Mon, 28 Sep 2009 19:09:23 +0000</pubDate>
<dc:creator>neilo</dc:creator>
<guid isPermaLink="false">7474@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Again, thank you, - works perfectly.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "PHP - multiplying variable by 5"</title>
<link>https://www.machform.com/forums/topic/php-multiplying-variable-by-5#post-7467</link>
<pubDate>Mon, 28 Sep 2009 14:01:42 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">7467@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You can try this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;input type=&#38;#39;hidden&#38;#39; name=&#38;#39;item_price&#38;#39; value=&#38;#39;&#38;lt;?php echo &#38;#39;&#38;#39;. $_SESSION[&#38;#39;form_data&#38;#39;][&#38;#39;element_8&#38;#39;] * 5; ?&#38;gt;&#38;#39;&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>neilo on "PHP - multiplying variable by 5"</title>
<link>https://www.machform.com/forums/topic/php-multiplying-variable-by-5#post-7427</link>
<pubDate>Sat, 26 Sep 2009 13:11:44 +0000</pubDate>
<dc:creator>neilo</dc:creator>
<guid isPermaLink="false">7427@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Again, something beyond the scope of this forum, I admit, but this would put the icing on the cake of my form-to-PayPal process. &#60;/p&#62;
&#60;p&#62;I have - with the help of this forum - arranged that a number submitted in the form (the number of entries into the charity's &#60;/p&#62;
&#60;p&#62;competition) is returned in my redirect page as a session variable. Each entry costs £5.00, so I want to be able to multiply the &#60;/p&#62;
&#60;p&#62;session variable (element_8) by 5. This will enter the total cost into the PayPal form. I have no idea of the correct syntax to use.&#60;/p&#62;
&#60;p&#62;The line I have is:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;input type=&#38;#39;hidden&#38;#39; name=&#38;#39;item_price&#38;#39; value=&#38;#39;&#38;lt;?php echo &#38;#39;&#38;#39;. $_SESSION[&#38;#39;form_data&#38;#39;][&#38;#39;element_8&#38;#39;]; ?&#38;gt;&#38;#39;&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I would like it to submit element_8 times 5&#60;/p&#62;
&#60;p&#62;(No worries if this is beyond the scope of support for this product)&#60;/p&#62;
&#60;p&#62;Thank you.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
