Categories > TinyButStrong general >

Best way to post forms?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Howman
Date: 2005-07-05
Time: 18:54

Best way to post forms?

I want to make sure my users can not accidentally refresh a page and cause a re-submit of data.

Looking at the TBS example for form posting, I see the form posts the data to itself.  How would I create a form that validates the data and then redirects the user to a separate Thank You page?

Also, speaking of forms, has anyone used TBS with a form claas library or other form creation tool?

Thanks,
Howard
By: RwD
Date: 2005-07-06
Time: 11:49

Re: Best way to post forms?

That is not a tbs question actually.

but use the header function in php for that. redirect the page to somewhere else and process the data there...

See http://nl3.php.net/manual/en/function.header.php for more details and the exact syntax (look for the redirect example)