Jump to content

checkbox value


rashmi_k28

Recommended Posts

if(isset($_POST["submit_plot"])){

$checklist=$_POST['check_list'];

echo "<img src=\"./linegraph.php?v1=$checklist\">";

 

I have passed the checkbox value to linegraph.php in the image.

 

In Linegraph.php

 

$param=$_REQUEST['v1'];

 

The graph is not plotted.

The values passed from the checkbox to linegraph.php should be in the format

 

$param=array('bw','cpu','auser','gs','cnt','rj','mem','pkt','rtt','qj');

 

Depending on the value checked the $param should form an array.

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/128352-checkbox-value/
Share on other sites

if(isset($_POST["submit_plot"])){

 

$checklist=$_POST['check_list'];

 

echo "<img src=\"./linegraph_final.php?v1=$checklist\">";

 

Here $checklist is a array.

 

In the bottom of the browser shows

//filepath?v1=Array

 

 

How to send the values of the $checklist as array('bw','gs')

 

Link to comment
https://forums.phpfreaks.com/topic/128352-checkbox-value/#findComment-666830
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.