Click here to Skip to main content
15,891,253 members

Comments by Rebecca2002 (Top 60 by date)

Rebecca2002 22-May-23 4:23am View    
true but how would I write it then? because I do need the users to know if its in the csv or not. if I just say:

// Read the contents of the file
while (($row_data = fgetcsv($file_handle, 1000, ';')) !== FALSE) {
if ($row_data[0] == $Zipcode && $row_data[1] == $Housenumber ) {
// User input found in the CSV
setcookie('cookie_test', 'true' , time() + 1000);
break;
}

}
setcookie('cookie_test', 'false' , time() + 1000);

it would always hit false
Rebecca2002 17-May-23 3:42am View    
the second page also needs to have session_start(); DOCS: https://www.php.net/manual/en/function.session-start.php
Rebecca2002 15-May-23 4:11am View    
to like the whole page? you could do *{ background-color: #f5f0fe;} or body{background-color: #f5f0fe;}
Rebecca2002 11-May-23 3:51am View    
the second question: Yes I don't know much about recaptcha so I didn't know if it was safe to just show the site keys. and I see what you mean with the enterprise I will remove it thank you
Rebecca2002 4-May-23 4:09am View    
I kinda need it the other way around. javascript is supposed to retrieve the cookie. because I'm doing a csv check in php and that response I want to show in javascript. for this I need set_cookie instead right? because the csv check isn't in a form.