zain_mr89 Posted June 3, 2013 Share Posted June 3, 2013 How to add time in mysql database from a textbox. <form name="addTime" action="<?php echo $SERVER['PHP_SELF']; ?>" method="post"> <input type="text" name="time" /> <input type="submit" name="enterTime" /> </form> Quote Link to comment Share on other sites More sharing options...
cpd Posted June 3, 2013 Share Posted June 3, 2013 http://www.html-form-guide.com/php-form/php-form-action-self.html Scroll down to "What are PHP_SELF exploits and how to avoid them". I wouldn't use PHP_SELF as you have. Have you connected to the database? Have you even created a database? What is the field type you're trying to insert to in the database as this dictates the format you use? Do your research, come back with a specific problem once you've attempted it yourself. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.