Afan Pasalic wrote:
brian wrote:
The problem that i see is here:
if (isset($_POST))
This will always return TRUE. It should rather be:
if (isset($_POST['name_of_your_submit_btn']))
or some other form element, at least.
I don't know if this was simply because it was a rough draft of the
c
brian wrote:
Instruct ICC wrote:
From your rough code, I'd say the OP always needs the select block
(just remove the "else" keyword and keep the block) for the current
info at the present page refresh/load. But I'd like clarification on
how the OP thinks about it.
That's close, i think
Instruct ICC wrote:
From your rough code, I'd say the OP always needs the select block
(just remove the "else" keyword and keep the block) for the current info
at the present page refresh/load. But I'd like clarification on how the
OP thinks about it.
That's close, i think. But the select
From: Martin Marques <[EMAIL PROTECTED]>
Stut wrote:
Wagner Garcia Campagner wrote:
header('Location: index.php');
Although technically speaking that should be an absolute URL.
AFAIK, they are both equivalent.
Ahhh, if the OP meant, "Load a different page after doing some form
processi
Martin Marques wrote:
Stut wrote:
Wagner Garcia Campagner wrote:
header('Location: index.php');
Although technically speaking that should be an absolute URL.
AFAIK, they are both equivalent.
Essentially yes, but personally (and for no logical reason I can think
of) I always prefer hea
Stut wrote:
Wagner Garcia Campagner wrote:
header('Location: index.php');
Although technically speaking that should be an absolute URL.
AFAIK, they are both equivalent.
--
21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18
--
From: Afan Pasalic <[EMAIL PROTECTED]>
rough code, to give you an idea:
('".mysql_real_escape_string($first)."',
'".mysql_real_escape_string($last)."')
");
}
else
{
$query = mysql_query("
select first, last
from table
where id=xyz
")
rough code, to give you an idea:
('".mysql_real_escape_string($first)."',
'".mysql_real_escape_string($last)."')
");
}
else
{
$query = mysql_query("
select first, last
from table
where id=xyz
");
$result = mysql_fetch_array($query,
From: "Wagner Garcia Campagner" <[EMAIL PROTECTED]>
Is there a way to tell PHP to reload the page after the user submit the
information, so the page is always updated??
Thanks in advance,
Wagner.
I don't get your fundamental problem. When a user submits a form, the page
handling the submissio
From: "Wagner Garcia Campagner" <[EMAIL PROTECTED]>
Hello,
I'm building a web page just like a blog...
Where the user input some information... (name, website and comment)
This information is stored in a file...
And then the page displays it...
When the user access the page the first time, t
Wagner Garcia Campagner wrote:
Thanks a lot,
I tried both suggestions, but it didn't work...
I did it send an Echo with this string:
After processing the form... it worked...
Is there any problem doing this?
You'd be better off with...
header('Location: index.php');
Although technically
EMAIL PROTECTED]
Sent: quinta-feira, 30 de agosto de 2007 14:44
To: Per Jessen
Cc: php-general@lists.php.net
Subject: Re: [PHP] Reload page after form submit
On 30/08/2007, Per Jessen <[EMAIL PROTECTED]> wrote:
>
> Wagner Garcia Campagner wrote:
>
> > Hello,
> >
> > I&
On 30/08/2007, Per Jessen <[EMAIL PROTECTED]> wrote:
>
> Wagner Garcia Campagner wrote:
>
> > Hello,
> >
> > I'm building a web page just like a blog...
> >
> > Where the user input some information... (name, website and comment)
> >
> > This information is stored in a file...
> >
> > And then the
Wagner Garcia Campagner wrote:
> Hello,
>
> I'm building a web page just like a blog...
>
> Where the user input some information... (name, website and comment)
>
> This information is stored in a file...
>
> And then the page displays it...
>
> When the user access the page the first time, t
14 matches
Mail list logo