Justin,

I'm using 4.3. V4.1 was my first ever exposure to PHP.

The example I provided used a field I knew had to be popluated (because of
where it came from, but for others I do some isset() validation.

The scenario I'm working with is university reading lists. A university has
several reading lists for which they want to purchase online materials. When
they run a course more than once (material is generally licensed on a
course-by-course basis, lasting for 1 year), I want to be able to generate a
fresh list, based on the old one but modifiable. Its working quite nicely,
but I need to get it finished before Tuesday, including re-writing the code
(and databases) to MS Access, rather than my development version using
MySQL.

Cheers

George

> -----Original Message-----
> From: justin gruenberg [mailto:[EMAIL PROTECTED]
> Sent: 22 June 2003 10:14 am
> To: George Pitcher; PHP-General
> Subject: Re: [PHP] TIP parsing form row data into variables
>
>
> Nothing appears blatently wrong in the code you provided, but it's 4am
> here, so I might be off.
>
> This comes to my mind:
> 1.  $_REQUEST was available from PHP 4.1.0 and later, are you using
> somthing before that?
> 2.  I assume you're doing somthing with $e_id within your loop, or else
> you're just resetting the contents of it.
> 3.  You might want to try print_r($_REQUEST) to see if it contains what
> you think it contains.
>
> George Pitcher wrote:
>
> >Hi all,
> >
> >This might be well known, so apologies if I'm going over old
> ground - I've
> >not seen this explained this way.
> >
> >Last year I did a site using the variable variables method to parse row
> >data.
> >
> >Now that I've moved to globals=off, I couldn't get that to work
> so I tried a
> >few other options settling for the following:
> >
> >('howmany' is  the number of form rows on the previous page)
> >
> >$howmany = $_REQUEST['howmany'];
> >for ($index = 1; $index < $howmany; $index++){
> >   $e_id = 'e_id'.$index;
> >   $e_id = $_REQUEST[$e_id];
> >
> >Then do something with it.
> >
> >Hope this helps someone.
> >
> >George in Oxford
> >
> >
> >
> >
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to