postback in php
Moderator: General Moderators
postback in php
Can we use facility equivalent to postback method of asp.net in php?
Re: postback in php
What exactly do you mean (or want)? Care to explain more?
Re: postback in php
php by default does not have a postback method similar to the ViewState postback that .net has. There may be a framework built somewhere that utilizes similar functionality, but I don't know of one off-hand.
Re: postback in php
thanks burrito for replying...i'll post reply if i get anything.
Re: postback in php
i'm passing some values in url and according to that value m deleting the entry or updating that entry. but when i refresh the page it takes the value again updates the entry...so what should i do?Shiki wrote:What exactly do you mean (or want)? Care to explain more?
Re: postback in php
your best bet would be to redirect using header() to a different page after the update completes.
Re: postback in php
Right. What Burrito said is what you could do. Forward it to a page without the parameters:
Say, this is your original url:
http://www.something.com/update.php?deleteid=1
In update.php, after your code processes the deleleteid parameter, you can forward it to a clean page:
Say, this is your original url:
http://www.something.com/update.php?deleteid=1
In update.php, after your code processes the deleleteid parameter, you can forward it to a clean page:
Code: Select all
header('Location: update.php');