Skip to main content

My quick thoughts, back stage, and rants as I try to Teach kids about the Web while learning how to help others build a better Web.

IndieWebRing

Come Journey Through the IndieWeb Sites

🕸💍

Greg McVerry

Greg McVerry

I need to play Battleship with my son but here is an example of a webmention badge form the wiki back to my blog:
https://indieweb.org/toolbuilder-badge-jgmac1106 and then displayed: https://archive.jgregorymcverry.com/badges/
think there is mad potential for community and wikis with webmention badges

Greg McVerry

@tomcritchlow and the place for half baked thoughts belong in a chat room and on the blogs of authors and community members. One thing gets right is the integration of the wiki with the chat and the distributed thinking done out loud on blogs.

Greg McVerry

@tomcritchlow We can send webmention badges from the wiki. Sometimes a little recognition goes a long way in supporting gardeners.Might be something to fool around with.

Greg McVerry

Getting started with PHP File-Trying to Create a Guest Book for My #IndieWeb Blog

5 min read

I have very limited experience with PHP. Basically I have copy and pasted contact forms for years and occasionally hack around in WordPress.

More recently I have started to dig into Known as I find stuff I would like to do on my site.

Right now I am trying to have a php form on a website and spit out the results on the same page. I don't want to save the data anywhere but the webpage.

Here is my attempt to write the form and the template. Would love feedback on the fundementals. Here is a link to a Gist as well.

If I can get this part proper I can then go and figure out what magic I need to do to make it happen.

<main>
     <div class="contain">

  <div class="Contactwrapper">
   

    <div class="form">
      <h3>Send us a message</h3>
      <form action="guestbook.php" method="POST">
        <p>
          <label for="name">Your name</label>
          <input type="text">
        </p>
        <p>
          <label for="website">My URL is...</label>
          <input type="text">
        </p>
      
        <p>
          <label for="instagram">Instagram</label>
          <input type="text">
        </p>
        <p>
          <label for="twitter">Twitter</label>
          <input type="text">
        </p>
        <p>
          <label for="email">Email Address</label>
          <input type="text">
        </p>
        <p>
          <label for="subject">Topic</label>
          <input type="text">
        </p>
        <p class="full-width">
          <label for="text">Write your message</label>
          <textarea name="" id="" cols="30" rows="7"></textarea>
        </p>
        <p class="full-width">
          <button>Send</button>
        </p>
      </form>
    </div>
  </div>
</div>
    <section class="h-feed">
            <h2 class="p-name">My Guestbook</h2>
            <h3>Curated by <span class="p-author">Insert Name</span></h3>
     <ul class="h-entry">
  <ul class="h-card">
  <li class="p-name">
            <?php echo htmlspecialchars($_POST['name']); ?></li>
   <li class="u-url"><a href="https://<?php echo htmlspecialchars($_POST['wesbite']); ?>"><?php echo htmlspecialchars($_POST['website']);</a></li>
  <li><a href="https://instagram/<?php echo htmlspecialchars($_POST['intagram']);"></a></li>,
<li><a href="https://twitter/<?php echo htmlspecialchars($_POST['twitter']);"></a></li>,
 </ul>
   <li class="dt-published">    <?php $currentDateTime = date('Y-m-d H:i:s'); echo $currentDateTime;?></li>
   <li class="p-content"><?php echo htmlspecialchars($_POST['name']); ?></li>
   </ul>
    </section>
    </main>

Greg McVerry

@JenProf Context defines each of those uses. A wasted character in a world that places primacy on character count.

Greg McVerry

Trying to make an HTML Note update for @WithKnown. Sometimes use just need a box for plain text. Wondering if this is the reason micropub clients can't publish notes:

"Apart from the htmlspecialchars() and (int) parts, it should be obvious what this does. htmlspecialchars() makes sure any characters that are special in html are properly encoded so people can't inject HTML tags or Javascript into your page."

htmlspecialchars() Is this getting in the way? Totally understand why you should have it....well I learned about three seconds ago...so totally is a little strong...

Greg McVerry

Navarro and Ferrel pour it all out...but that guitar....but that voice....such an original band...Has to make short list of best 90s bands.

Greg McVerry

Listened to the album, Ritual De Lo Habitual

By Jane's Addiction

I would argure one of the best rock album of the ninties...an exploration of anger and answers for which no bell tolls.

Greg McVerry

@mapkya @benwerd I tried writing media queries so set width to both 90 and 100% but must have did it wrong. Kept getting overridden by something.