I would sincerely appreciate any help anyone can give me. I have been
trying to solve my problem for hours and I am not having any luck, so I
thought I would post and see if anyone can help. I am very stuck and am
not making much progress on this project, and I am certain the answer is
very simple.
I am constructing a form to collect data for a specialized purpose.
The form and program actually work for its intended function, but I am
trying to enhance the user experience by preventing customers from
having to reenter all of their data should there be a problem with any
of the data submitted.
I have been able to do that with the contact form portion, but what I am
having trouble with is the portion which has as many as 400 possible
entries.
So, in a nutshell, if the customers contact data is incomplete or in
error, the form will ask them to return to the page and correct things.
The previous data entered has been saved in the session and the input
value will equal the previous entry.
i.e.
[php]
Works perfectly, all well and good there.
On the other 400 more or less entries, I am having a difficult time
tweaking the string concatenation to work to achieve similar results.
There are 4 columns each with $points entries asking for a dimension in
either feet or inches.
The <input name=> is one of ptaf,ptai,ptbf,ptbi, appended programatically with the corresponding
row number or data point. i.e. “ptaf1”, “ptai1”, etc… This is produced by the example
below and works perfectly also.
[php]<?php {
$points=100;
$i=1;
while ($i <= $points)
{echo ’
';
$i++;
}
}
?>[/php]
I am trying to add for each field but as I mentioned I
am not having any luck. It seems as if I have tried every combination
imagineable, but still no luck. My head is spinning!
The closest I seem to have gotten was with this:
But line 17 for example returns this:
To recap, I am trying to have the value set to whatever the customer may
have entered previously.
Again, I would most appreciate any help anyone can give me. If you need
clarification on anything please let me know.
Thanks
AJ