my eye
published
  • 2025-05-31T14:52:24.795556-07:00
updated
  • 2025-05-31T16:20:15.559418-07:00
visibility
  • public
author
  • {'uid': ['/'], 'name': ['Angelo Gladding'], 'nickname': ['angelo'], 'note': ['<a href=/hacking#for-right>Hacker for right</a> <a href=/homesteading>homesteading into the future</a>.'], 'email': ['angelo@ragt.ag'], 'photo': ['XWjA.png']}
url
  • /species
  • /2025/05/31/ug
type
  • entry
name
  • Species Client

Content

$ req = web.tx.request

$if req.method == "GET":
    <form method=post action=/species>
    <label><small>Name:</small><br>
    <input name=name></label><br>
    <button>Post</button>
    </form>
$elif req.method == "POST":
    $ form = web.form("name")
    $if mp_resp := mp_post(h="species", name=form.name):
        <p>$mp_resp.text</p>
        <p>Species posted.</p>
    $else:
        <p>Your website does not support micropub.</p>