Re: [PHP] New to PHP form attributes

2003-10-07 Thread Chris Shiflett
--- Matthew Oatham <[EMAIL PROTECTED]> wrote: > I am new to PHP and am more used to JSP. My question is - if I > submit a form to a php3 page using action=="" for > some processing all is well I can see that form data. After the > processing the page is redisplayed - but the data originally sent >

Re: [PHP] New to PHP form attributes

2003-10-07 Thread Marek Kilimajer
You should use post method for forms that change state on the server, that way the user gets a warning. And you should redirect after processing the form to another page. if($_GET['action']=='submit') { INSERT INTO table VALUES (NULL, '$_GET[input]' header('Location: ...'); } els