Page 1 of 1
POST form data after validation...
Posted: Fri Jun 18, 2004 11:04 pm
by kevin7
can i use php code to post data to another page?
just like a submit button...
besides of query string method...
tq
Posted: Fri Jun 18, 2004 11:26 pm
by feyd
nit pick: query strings get data, not post it.
[php_man]curl[/php_man] can fairly easily "post" data to other pages, if required.. [php_man]session[/php_man]s are the preferred way to pass information without posting it.
if you are using Javascript or other clientside scripting system to validate the information, it can be suggested to validate it on the server. For one, validating on the server will have to be done anyways, you can't rely on the client's passed data to be valid.. Although, if errors exist, you start wasting bandwidth sending back error information.. 6 of one, half a dozen of the other.