submitt button in php

manojsinghrana

manojsinghrana

@manojsinghrana-NciZJa Oct 26, 2024
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..!

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • YOUNGGRASSHOPPER

    YOUNGGRASSHOPPER

    @younggrasshopper-RPPL3J Dec 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. 😀
  • Ankita Katdare

    Ankita Katdare

    @abrakadabra Dec 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 } ?>

  • manojsinghrana

    manojsinghrana

    @manojsinghrana-NciZJa Dec 26, 2010

    tanx abrakadabra
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Dec 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>