Help please!
Posted: Tue Apr 06, 2004 11:10 am
Hi guys,
I have the following question:
I have a file called displayEvents.php with button called edit which lead when hit to another page called editEvent.php which has a button called save.
my probelm is as follows.
when the button save is hit, I want to check if all fields on page(editEvent.php )are not empty, if no one is empty I save the data in a database table and go to another page(index.php), this works fine but the problem is when some fields are empty, I want to keep the same page loaded and ask user to fill all fields before saving, how can I do this?
thanks in advance.
Clarification:
I use a javascript function to chexk if all the fields are filled the problem is if the event is displayed and if I delete for example the event title and hit save, I go backo top the same page but I can still see the event title there, I want to go back to the same page but with event title field empty.
thanks again.
I have the following question:
I have a file called displayEvents.php with button called edit which lead when hit to another page called editEvent.php which has a button called save.
my probelm is as follows.
when the button save is hit, I want to check if all fields on page(editEvent.php )are not empty, if no one is empty I save the data in a database table and go to another page(index.php), this works fine but the problem is when some fields are empty, I want to keep the same page loaded and ask user to fill all fields before saving, how can I do this?
thanks in advance.
Clarification:
I use a javascript function to chexk if all the fields are filled the problem is if the event is displayed and if I delete for example the event title and hit save, I go backo top the same page but I can still see the event title there, I want to go back to the same page but with event title field empty.
thanks again.