TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Open Source Guest Book in php

2 pointsby barakstoutalmost 12 years ago

1 comment

rachelbythebayalmost 12 years ago
<p><pre><code> &#x2F;&#x2F;let&#x27;s check if the guest is already in our system $check = &quot;SELECT * FROM guests WHERE `first_name` = &#x27;$_POST[first_name]&#x27; AND `last_name` = &#x27;$_POST[last_name]&#x27; AND `email` = &#x27;$_POST[email]&#x27; &quot; ; </code></pre> I&#x27;m not much of a PHP person, but doesn&#x27;t this imply you&#x27;re taking user-supplied POST data and are putting it directly into your SQL? If so, that won&#x27;t end well.<p>Regarding the actual concept, I saw a place which used an iPad as the signin system for visitor badges, complete with a way to sign your name for NDA purposes if you&#x27;re there for an interview. It seems sound, assuming you can keep people from messing it up with the home button.<p>That said, I think they had an app, not a web page.
评论 #6044683 未加载