I'm working on cearting a GUI for sending SMS in my project, but I'm facing problem. I had provided Javascript and the entire page is created with PHP.
I had also created a database to maintain the SMS which is being sent. Now whenever I'm clicking on "Submit" button, evenif the message and contact number is empty still there is a data being sent to the database.
also on refreshing the page a data is stored in the database.
Please help me.......It's very urgent.



