-6

How would I go about transforming the following standard HTML to a page that uses Bootstrap? I have attempted to include the require Bootstrap files in <?php include("bs.php"); ?>, but it does not work.

Contents of the BS.php are:

    <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
      <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>

The one that I would like to use the Bootstrap Framwork on is the following:

    <html>
    <head>
    <?php include("bscode.php"); ?>
        <title>Add Data</title>
    </head>

    <body>
        <a href="index_video.php">Home</a>
        <br/><br/>

        <form action="add_video2.php" method="post" name="formx">
            <table width="25%" border="0">
                <tr> 
                    <td>Title</td>
                    <td><input type="text" name="title"></td>
                </tr>
                <tr> 
                    <td>Embedded code</td>
                    <td><input type="text" name="embed"></td>
                </tr>
                <tr> 
                    <td>Category</td>
                    <td><input type="text" name="cat"></td>
                </tr>

                <tr> 
                    <td></td>
                    <td><input type="submit" name="Submit" value="Add"></td>
                </tr>
            </table>
        </form>
    </body>
    </html>
Funk Forty Niner
  • 74,372
  • 15
  • 66
  • 132
  • 1
    well what is bscode.php? Bootstrap is mostly composed of css, not php. You should show what is is bscode.php – Cave Johnson May 11 '16 at 16:16
  • doesn't work as in what? accessing as `file:///file.html` (.php) or as `http://localhost/file.php` or (.html)? completely different animals here. – Funk Forty Niner May 11 '16 at 16:17
  • *"Contents of the BS.php are:"* and you're using `include("bscode.php")` so which one is it? or are we all blowing bubbles here? code works btw. you going to answer us here?? most particularly the second comment. – Funk Forty Niner May 11 '16 at 16:43
  • Maybe you have a typo, check file name that you're including ( 'bscode.php' != 'BS.php'). Anyway, you can check [this](http://getbootstrap.com/getting-started/#template) to get an idea how you can use bootstrap and "transform" your code. – Muriano May 11 '16 at 16:45
  • 1
    ...nor does `BS.php` equal `bs.php` (and vice-versa) on a * NIX system. which so far, has only been "that", "B.S.". Here we are trying to help, but all we're getting is *"La la lahhh,... I don't hear you... give me a magic answer here!!"* – Funk Forty Niner May 11 '16 at 16:46
  • *"but it does not work"* - **MEANS SQUAT.**. Good luck with that. Oh and don't expect the "free" help to stick around any much longer; this includes me. – Funk Forty Niner May 11 '16 at 16:50
  • Found what I was looking for here. http://bootsnipp.com/forms. Found it after reading the link that Hakam posted. A simple link to where to look was enough. – gentlebreeze May 11 '16 at 16:54

1 Answers1

0

It is important to distinguish between serverside and clientside.

Briefly, PHP is used for serverside whereas HTML is for clientside. Now, Bootstrap runs on CSS, and to "simply" integrate Bootstrap and be able to use some of their way of design, click here and follow the instructions.

There is no reason to migrate to Bootstrap unless you are looking for responsiveness for all devices which has many advantages in terms of search engine ranking and more.

Hakam
  • 54
  • 9
  • Just updated my question to make it clearer. I want to make it more responsive. – gentlebreeze May 11 '16 at 16:25
  • Congratulations, @gentlebreeze. You're now running on Bootstrap. Take your time to read their docs to see how things work. Things on your page shouldn't magically _change_ when you use Bootstrap. – Hakam May 11 '16 at 16:27