Hello all.
I'm relatively new to the world of PHP, but I've programmed in C, C++, Rexx, in the
past.
What I'm working on is this and I wanted to clarify some things about how PHP "runs"
I've got a function that contains a form and depending on the entry to the form, which
is
then checked
Here's what I'd do (pseudocode):
?php
if ($submit) {
check for duplicate;
if (everything OK) {
commit to db;
}
}
else {
display form with submit button named 'submit';
}
?
Mick
how do I do this
call form
wait there until it is
Lets try that again:
?php
if ($submit) {
if (data already in db) {
reject data;
}
else {
commit data to db;
}
}
else {
display form with submit button named 'submit';
}
?
A bit of a mud map ... hope it helps
Thanks, Michael
You've reinforced how I've come learn that php does things. When I first tried the
script
it simply printed the first form over and over. it was kind of funny in a way. I'll
restructure
my program now to account for how PHP does things. thanks again,
chris
On Mon, 9
4 matches
Mail list logo