mattyd Posted December 27, 2010 Share Posted December 27, 2010 Hi. I have just one question (I have searched for an answer for this but have not been able to locate one): How do you go about changing the text on a "Submit Query" button to display simply "Submit"? Below is the current code for the page that displays said button. Thank-you in advance for any help or direction. <?php include 'connection.php'; $query = "SELECT * FROM people"; $result = mysql_query($query) or die(mysql_error()); while ($person = mysql_fetch_array($result)){ echo $person ['name']; echo $person ['descrip']; } ?> <H1>Add Your Review:</H1> <form action="create.php" method="post"> Subject <input type="text" name="inputName" value=""/> </br > Review <textarea cols="50" rows="4" name="inputDesc" value=""/></textarea> </br > <input type= "submit" name= "submit"/> </form> <html> <head></head> <body> <p>The current second is <span style='font-size:16px;font-weight:bold;color:red;position:absolute;right:25px;'><?php echo time(); ?></span> on this computer.</p> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/222725-changing-text-on-submit-query-button/ Share on other sites More sharing options...
mattyd Posted December 27, 2010 Author Share Posted December 27, 2010 I figured it out. Thanks. Matty Quote Link to comment https://forums.phpfreaks.com/topic/222725-changing-text-on-submit-query-button/#findComment-1151763 Share on other sites More sharing options...
revraz Posted December 27, 2010 Share Posted December 27, 2010 <input type= "submit" name= "submit" value="My Button Name"/> Quote Link to comment https://forums.phpfreaks.com/topic/222725-changing-text-on-submit-query-button/#findComment-1151764 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.