![]() |
html and php help
I have some online form and right now I have seen some small problem.
1. Some of the data are being duplicate the same data. Q. What is the html or php or script to use so that it can be automatically check if the data is already use (i.e. username or email)? 2. Some of the form are blank no data has been entered. Q. What is the html or php or script to use so that the single form or a text field can be required to fill in some data on it? Thanks in advance. |
Bump for some info.
|
1) in use where?
2) if empty ($_REQUEST['somevar']) { print an error and exit } What sucks about web development is that every month about 50 hackers will check to see if you made any common mistakes. Unlike desktop or microcontroller development, "small" errors end up with your server overrun with trojans. Since you're clearly a complete newbie, just starting to learn the very basics, these three rules will help your server survive while you learn: Don't call any system commands, like ffmpeg for example. You don't know how to do so safely. (You're about 2-3 years from knowing how if you're careful and you study, as the "techies" here normally post perfectly exploitable code.) Sendmail is a system command. Use PHP's mail() function and hardcode either the recipient or the message. Otherwise you'll be a nice gateway for spammers. If you use a "database" (which will actually be a spreadsheet to you, since you don't know what "relational database" means), assume the bad guys have access to it. They can read or delete your table at this point in your development. I say these things without looking down on you at all. I was at the same place in my learning twenty-five years ago. Now, I'd be grateful to get similar tips from T'so on how to work on a device driver without blowing up my kernel. I'm about to work on an LVM device mapper patch and I'll be seeking advice from agk and Zdenek Kabelac. |
Too long to explain.
In this case google is your very good friend... |
Quote:
Lol in this case O'Reilly is your friend. |
Quote:
|
|
| All times are GMT -7. The time now is 05:47 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123