Jump to content

filling an array with post variables


denoteone

Recommended Posts

How do I create an array and fill it with variables?

 

$sitebreakdown=array($_POST['micro'],$_POST['medium'],$_POST['large']);

I then am going to save $sitebreakdown in a session variable like

$_SESSION['site_breakdown'] = $sitebreakdown;

am I on the right track?

Link to comment
https://forums.phpfreaks.com/topic/142809-filling-an-array-with-post-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.