[Cialug] (no subject)

Jerry Weida cialug@cialug.org
Thu, 3 Feb 2005 12:44:06 -0600


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:
>=20
>=20
> Long time listener, first time caller=E2=80=A6
>=20
> =20
>=20
> I'm trying to do some very dynamic form work and have run into a problem
> that I don't quite know about.
>=20
> =20
>=20
> 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.=20
>=20
> =20
>=20
> So far I've gotten stuck on $_POST['$varname'] always being empty. ($varn=
ame
> will change every iteration of a loop, so there's some nested goodness to=
o)
> Using var_dump($_POST) shows me that in fact the $varname variable is the=
re
> and even using strcmp on a string that is exactly the same as what var_du=
mp
> tells me is there doesn't work.=20
>=20
> =20
>=20
> 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.=20
>=20
> =20
>=20
> Any thoughts from the php gurus out there?
>=20
> =20
>=20
> Thanks,
>=20
> =20
>=20
> -Jason
>=20
> =20
>=20
> Jason Hill
>=20
> jahill@iastate.edu
>=20
>