Login Register


[HELP] Website Functions! filter_list
Author
Message
RE: [HELP] Website Functions! #21
(12-15-2013, 08:26 PM)Anizeb Wrote: Sorry if I offended you, was just offering ideas since the code is working fine for me.

As for checking if an email was used, you can use regex to see if there's a match in the file.
Not so sure about validation, though.

It's alright. I can do the validation. I'll look into regex.


RE: [HELP] Website Functions! #22
A considerably better option, especially since you're already working with PHP, would be to save it to a MySQL database, checking if it was already used with an SQL query beforehand.
[Image: tumblr_m73y8go3jd1rb7u8co1_500.gif]
Avatars are for faggots.


RE: [HELP] Website Functions! #23
(12-17-2013, 10:48 PM)Anizeb Wrote: A considerably better option, especially since you're already working with PHP, would be to save it to a MySQL database, checking if it was already used with an SQL query beforehand.

I'm only a beginner but I'll look into that too.

Also,
How would I edit camice's subscription feature code to save data from 2 input boxes, email and password, to the file instead? (In a readable format)


RE: [HELP] Website Functions! #24
You should never save passwords for anything in a text file.
It's fine-ish for a list of emails, but it poses a risk to store passwords like that.
[Image: tumblr_m73y8go3jd1rb7u8co1_500.gif]
Avatars are for faggots.


RE: [HELP] Website Functions! #25
(12-17-2013, 10:59 PM)Anizeb Wrote: You should never save passwords for anything in a text file.
It's fine-ish for a list of emails, but it poses a risk to store passwords like that.

I know, but let's just say that I'm not concerned about the security of these passwords. Wink


RE: [HELP] Website Functions! #26
... right.

Well, to store more fields, you'll need to grab the field values via their name, and concatenate the string:
Code:
<?php $file_name = 'YourFileContainingEmails.txt'; $mail = $_POST['email']; $pass = $_POST['password']; $file = fopen($file_name, "a"); fwrite($file, $mail . ", " . $pass . "\n"); ?>

That will save the fields "email" and "password" to your file in the format
Quote:user@Email.com, password
user2@Email.com, password1
[Image: tumblr_m73y8go3jd1rb7u8co1_500.gif]
Avatars are for faggots.


RE: [HELP] Website Functions! #27
Yeah.. You don't want to know.

Anyway, thanks!!! <3


RE: [HELP] Website Functions! #28
You could very easily just google for this.


RE: [HELP] Website Functions! #29
(01-05-2014, 10:00 PM)Cake Wrote: You could very easily just google for this.

Who needs Google when you have Sinisterly?
[Image: BXqGARG.png]


RE: [HELP] Website Functions! #30
(01-05-2014, 10:21 PM)Duubz Wrote: Who needs Google when you have Sinisterly?
Who needs sinisterly when you have google?








Users browsing this thread: 1 Guest(s)