Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP password protect a link attached to an image
    primarykey
    data
    text
    <p>Herroo everyone! I am building a website for my dad. He is an accountant. We have Google calendars setup for him to take appointments. The website is just a pretty front page with three clickable images that link to different calenders. Two of the buttons are linked to employee calendars and are not password protected which is fine. We want new people to be able to sign up for them. My dad however is overbooked and needs his link password protected so he can give the password out to specific clients in order for them to make their appointments. He does not want see new people.</p> <p>I can work with html and css but a total newb to PHP/MYSQL. I have been doing a lot of research and downloaded many tutorials/sample codes the past few days but I am still confused. This is what I've gotten so far after modifying some sample code. I set the password to be barney and do not require a user name and saved it as php1.php in a sub folder called protect. I remember reading somewhere that this well help with people bypassing the password.</p> <pre><code> &lt;?php $password = "barney"; if (md5($_POST['txtPassword']) != $password) { ?&gt; &lt;h1&gt;Login&lt;/h1&gt; &lt;form name="form" method="post" action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;"&gt; &lt;p&gt;&lt;label for="txtpassword"&gt;Password:&lt;/label&gt; &lt;br /&gt;&lt;input type="password" title="Enter your password" name="txtPassword" /&gt;&lt;/p&gt; &lt;p&gt;&lt;input type="submit" name="Submit" value="Login" /&gt;&lt;/p&gt; &lt;/form&gt; &lt;?php } </code></pre> <p>after this I am stuck... I do not know how to apply this to my html page and attach it to the image/link. Any help is much appreciated! Thanks so much!!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload