CrazyEngineers
  • submitt button in php

    Updated: Oct 26, 2024
    Views: 1.2K
    hello,

    i am making a website in php. because this is the only language i am familiar with. and i want to add some attractive buttons in my web sites. but using html only i cant make this happen.

    so please somebody tell me how to create some cool looking buttons so that i can add them in my php based website (is it possible to create a button in photoshope and add it on my website ?
    if yes then how ?).

    thank you..!
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • YOUNGGRASSHOPPER

    MemberDec 26, 2010

    Hi manojsinghrana.

    I am pretty sure you can create a buton in Photoshop and then use it in a site. Although I am not sure how to go about doing that.
    Another thing you might try is to go to a website that offers free website addons-- like buttons counters and things like that.
    Get one of the buttons for your site and then examine the code and try making changes to it to experiment with how it works and craft it into your own unique button.
    It might be a fun learning experiance. 😀
    Are you sure? This action cannot be undone.
    Cancel
  • Ankita Katdare

    AdministratorDec 26, 2010

    Hi manoj,

    The title of your post says Submit Button.

    Making a submit button is as simple as this:

    <INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Login">

    For using image for a button, use something like this:

    <input type=”image” src=”images/image-name.gif” alt=”Send Message” value=”Submit”>

    // Don't forget to upload the images button2.gif and button1.gif on your server.

    The PHP code would look like this:

    <?php if (isset($_POST["control_name_x"])) { // form submitted code } ?>

    Are you sure? This action cannot be undone.
    Cancel
  • manojsinghrana

    MemberDec 26, 2010

    tanx abrakadabra
    Are you sure? This action cannot be undone.
    Cancel
  • Manish Goyal

    MemberDec 28, 2010

    You can also do same by using css

    check it out

    <html>
    <head>
    <style type="text/css">
    .submit{
    width:101px;
    height:31px;
    background:none;
    border:none;
    background-image:url(../images/searchbtn.png);
    background-repeat:no-repeat;
    font-family:arial;
    font-size: 14px;
    font-style: normal;
    line-height: normal;
    font-weight:500;
    font-variant: normal;
    text-transform: none;
    vertical-align:middle;
    text-align:center;
    color: #ffffff;
    cursor:pointer;
    text-decoration: none;
    }
    </style>
    </head>
    <body>
    <input type="submit" class="submit" name="submit">
    </body>
    </html>
    
    
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register