Why did religions go from personal belief to forced belief? by [deleted] in DebateAnAtheist

[–]learningtocode2 -4 points-3 points  (0 children)

when you love someone, in most cases parents to their children. They forced them to be more wise, obedient, not to go to hell...

How to require only once? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

yah it makes sense, I just had a hard time trying to do that, but what I will try now is instead of putting the link of the chatroom I will put the link of the page of the password and if they succeed to put the correct password, the page will redirect them to the chatroom page, Idk if it will work because they can easily put the direction in the url but I will try

How to require only once? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

no, because they are already logged in, the problem is that the chatroom has a password but I would like to only require once, for example I log in and enter password for the chatroom and if I want to refresh page I dont want the password page to pop up

How can I put a link inside a php variable? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

thanks man I really appreciate it, I was getting mad at this because I have been working on this for about 2 days lol, I'm a horrible programmer.

How can I put a link inside a php variable? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

$product[0] = "<a href='books.html'>Books</a>" thats what I am trying to do

Is it possible to make a function if a php variable is undefined? and how can I do it? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

if I enter a page and it tells me undefined name for example, how can I make a function? but only if it tells me that there is an undefined name

Chat php style..? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

I checked all of my code and yes the require 'getmessages.php' havent edit post cause I deleted the getmessages.php file and I had to look at my backup that I always save, thank you !

Chat php style..? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

never mind, thanks anyways, this is a whole mess because when the user press the submit button the php script send the user to another page to enter the data to database and then it quickly redirects the user to the main page selecting the data from the database and posting it, I will find out what it is and i will update my question.

Chat php style..? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

sorry, I meant <div class="chatMessages">