Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-07-2011, 08:12 PM   #1
journalism
Confirmed User
 
Industry Role:
Join Date: Mar 2011
Location: I travel a lot, but I am originally from Bali, Indonesia
Posts: 395
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.
journalism is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-07-2011, 08:46 PM   #2
journalism
Confirmed User
 
Industry Role:
Join Date: Mar 2011
Location: I travel a lot, but I am originally from Bali, Indonesia
Posts: 395
Bump for some info.
journalism is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-07-2011, 09:16 PM   #3
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
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.

Last edited by raymor; 12-07-2011 at 09:18 PM..
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-07-2011, 09:22 PM   #4
19teenporn
Confirmed User
 
19teenporn's Avatar
 
Industry Role:
Join Date: Apr 2011
Location: En la reverendisima concha de tu madre!
Posts: 3,034
Too long to explain.

In this case google is your very good friend...
19teenporn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-07-2011, 10:58 PM   #5
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Quote:
Originally Posted by 19teenporn View Post
Too long to explain.

In this case google is your very good friend...

Lol in this case O'Reilly is your friend.
__________________
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-07-2011, 11:57 PM   #6
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
Quote:
Originally Posted by raymor View Post
1) in use where?

2)
if empty ($_REQUEST['somevar']) {
print an error and exit
}
Using $_REQUEST is such a bad idea unless you really know what you're doing.
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-08-2011, 12:51 AM   #7
marlboroack
So Fucking Banned
 
Industry Role:
Join Date: Jul 2010
Location: ☣
Posts: 9,327
marlboroack is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.