Categories > TinyButStrong general >

Dealing with Forms

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: joshmac
Date: 2008-07-07
Time: 15:30

Dealing with Forms

Since presentation and php code is separated using TBS, I wanted to know how
other people deal with this with regards to forms (i.e. editprofile.php).  Since you can't
use something like
<? $_SERVER['PHP_SELF'];?>
in order to reload the page after submit, do other's redirect the user to a confirmation or use javascript?  Thanks.
By: Trent
Date: 2008-07-07
Time: 17:43

Re: Dealing with Forms

[var..script_name]

By: Trent
Date: 2008-07-07
Time: 17:44

Re: Dealing with Forms

Oops, misunderstood you I think.

After submitting a form, I generally just use:

Header('Location: page.php'):
By: joshmac
Date: 2008-07-07
Time: 18:27

Re: Dealing with Forms

Thanks, Trent.  I use the same thing.