Ver Mensaje Individual
  #5 (permalink)  
Antiguo 24/08/2011, 09:59
dasa
 
Fecha de Ingreso: marzo-2009
Mensajes: 132
Antigüedad: 15 años, 1 mes
Puntos: 8
Respuesta: Como pasar los valores de un campo de texto a un array

Gracias

Este es el código donde esta el campo de texto y el botón, del archivo aaa.php:

Código PHP:
Ver original
  1. <form id="form1" name="form1" method="post" action="1.php">
  2.   <label>
  3.   <input type="text" name="uno" id="uno" />
  4.   </label>
  5.   <label>
  6.   <input type="submit" name="button" id="button" value="Enviar" />
  7.   </label>
  8. </form>

Y este 1.php esta el array xyz que quiero llenar con los datos que digito en aaa.php :
Código PHP:
Ver original
  1. <?php
  2. include("inc/jpgraph.php");
  3. include("inc/jpgraph_line.php");
  4.  
  5. $xyz = array();
  6.  
  7.  
  8.  
  9. $graph = new Graph(350, 250,  "auto");    
  10. $graph->SetScale( "textlin");
  11. $graph->img->SetMargin(40, 20, 20, 40);
  12. $graph->title->Set("Tres Lineas");
  13. $graph->xaxis->title->Set("gracias");
  14. $graph->yaxis->title->Set("por todo");
  15.  
  16. $lineplot1 = new LinePlot($xyz);
  17. $lineplot1->SetColor("blue");
  18.  
  19. $graph->Add($lineplot1);
  20. $graph->Stroke();
  21. ?>

De verdad disculpe las molestias.

Muchas gracias