POST form data after validation...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kevin7
Forum Commoner
Posts: 96
Joined: Fri May 21, 2004 6:54 am

POST form data after validation...

Post by kevin7 »

can i use php code to post data to another page?
just like a submit button...

besides of query string method...

tq
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply