[Cialug] (no subject)

Jason Hill cialug@cialug.org
Thu, 3 Feb 2005 13:38:50 -0600


/me wears egg on face. It's always the simple ones that you don't think
of....

Thanks. 
-Jason

-----Original Message-----
From: cialug-admin@cialug.org [mailto:cialug-admin@cialug.org] On Behalf Of
Jerry Weida
Sent: Thursday, February 03, 2005 12:44 PM
To: cialug@cialug.org
Subject: Re: [Cialug] (no subject)

If I'm understanding the problem correctly, then it would appear that
you are using the wrong type of quotes.  Try:

$_POST["$varname"]

in place of

$_POST['$varname']

I could be way off on this though.


On Thu, 3 Feb 2005 12:35:29 -0600, Jason Hill <jahill@iastate.edu> wrote:
> 
> 
> Long time listener, first time caller.
> 
>  
> 
> I'm trying to do some very dynamic form work and have run into a problem
> that I don't quite know about.
> 
>  
> 
> I have information in an XML file that I use to populate the form
> (checkboxes and text boxes). The names of those objects come from the
> information in the XML file. Once the form is submitted I need to iterate
> over all the $_POST information and update data in the XML file according
to
> what was checked and entered into the check/text boxes. 
> 
>  
> 
> So far I've gotten stuck on $_POST['$varname'] always being empty.
($varname
> will change every iteration of a loop, so there's some nested goodness
too)
> Using var_dump($_POST) shows me that in fact the $varname variable is
there
> and even using strcmp on a string that is exactly the same as what
var_dump
> tells me is there doesn't work. 
> 
>  
> 
> The XML datafile changes daily, so I can't count on fields being there or
> not, or being in the same place in the file. 
> 
>  
> 
> Any thoughts from the php gurus out there?
> 
>  
> 
> Thanks,
> 
>  
> 
> -Jason
> 
>  
> 
> Jason Hill
> 
> jahill@iastate.edu
> 
>
_______________________________________________
Cialug mailing list
Cialug@cialug.org
http://cialug.org/mailman/listinfo/cialug