jzdexta Posted August 3, 2007 Share Posted August 3, 2007 Hi, I'm trying to make an internet based application where i create my own buttons and not use the default button constructs. I'm using forms but dont like their buttons hence the desire to change them, i want the buttons to take up the post functions on the form. HOw do i do this? Please help. Thank you in advance Quote Link to comment https://forums.phpfreaks.com/topic/63162-html-action-buttons/ Share on other sites More sharing options...
Daniel0 Posted August 3, 2007 Share Posted August 3, 2007 Is it the looks of the button you wish to change? You can use CSS for that. The below would make a PHP Freaks logo button: <style type='text/css'> .custom_button { background: url(http://www.phpfreaks.com/images/logo_main.jpg); height: 94px; width: 510px; border: 0; } </style> <input type='button' class='custom_button' value='Click Me!' /> Quote Link to comment https://forums.phpfreaks.com/topic/63162-html-action-buttons/#findComment-314843 Share on other sites More sharing options...
jzdexta Posted August 3, 2007 Author Share Posted August 3, 2007 thanx for the reply. i want to use images instead of the default button. Quote Link to comment https://forums.phpfreaks.com/topic/63162-html-action-buttons/#findComment-314873 Share on other sites More sharing options...
RichardRotterdam Posted August 3, 2007 Share Posted August 3, 2007 what about simply using images inside links or if you want navigation buttons style the list with css Quote Link to comment https://forums.phpfreaks.com/topic/63162-html-action-buttons/#findComment-314897 Share on other sites More sharing options...
jzdexta Posted August 3, 2007 Author Share Posted August 3, 2007 thanks all so far, now have the image as my button. Got a new problem: when i click the "submit" button instead of posting the form content its downloading the receiving form which is in php code, bear in mind that apache server is running. What could be the problem? thanx in advance Quote Link to comment https://forums.phpfreaks.com/topic/63162-html-action-buttons/#findComment-314910 Share on other sites More sharing options...
Daniel0 Posted August 3, 2007 Share Posted August 3, 2007 You can use <img> tags inside <button> tags... Quote Link to comment https://forums.phpfreaks.com/topic/63162-html-action-buttons/#findComment-315057 Share on other sites More sharing options...
RichardRotterdam Posted August 3, 2007 Share Posted August 3, 2007 thats why i use links inside my forms so that the form doesn't submit when click on it. you could use a javascript work around but using link tags is easier Quote Link to comment https://forums.phpfreaks.com/topic/63162-html-action-buttons/#findComment-315072 Share on other sites More sharing options...
AndyB Posted August 5, 2007 Share Posted August 5, 2007 when i click the "submit" button instead of posting the form content its downloading the receiving form which is in php code, bear in mind that apache server is running. What could be the problem? Without seeing your form processing script we have to rely on a crystal ball to tell you what the problem is. What it might be is that you're checking for $_POST['submitbutton_name'] when you should be checking for $_POST['submitbutton_name_x'] since image submits act the same way as image maps - they return the x and y coordinates of the clicked point relative to the upper left corner of the image. Quote Link to comment https://forums.phpfreaks.com/topic/63162-html-action-buttons/#findComment-316028 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.