Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 28 Jul 2016 11:10 PM |
I want to try to make a website. I know HTML and CSS. However, those are more for the aesthetics, and I have no idea what to do about the "brain" of it all.
Is that where JS comes in? Also, sorry for the bad format, this got censored like 293897593 times and I was getting frustrated.
u sicko! |
|
|
| Report Abuse |
|
|
eter
|
  |
| Joined: 27 Jul 2008 |
| Total Posts: 10523 |
|
|
| 28 Jul 2016 11:14 PM |
I know all three and Javascript is where all the code ends up being. HTML and CSS really just are the aesthetics as you said. I had already known java, but all you need to do is just type all your questions into google. If you want to get input from the user you need to mess with some stuff in HTML, but most of the coding is in javascript. |
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 28 Jul 2016 11:15 PM |
| You should most certainly look into php. It's how you'll handle everything like cookies, logging in, etc. |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 28 Jul 2016 11:18 PM |
php = ? Also, is JavaScript more like HTML or more like Lua?
u sicko! |
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 28 Jul 2016 11:19 PM |
Javascript has more similarities to Lua. Javascript is a programming language, html is a markup language.
Php is more like the brain of a website. |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 28 Jul 2016 11:21 PM |
PHEW I heard it was close to Lua, which is the language I'm most familiar with (Probably thanks to this website).
So what do I do with the JavaScript and PHP and how do I get them working with my current HTML and CSS files?
u sicko! |
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 28 Jul 2016 11:24 PM |
soooo apparently headers break roblox's filter for the forums, so here: hastebin.com/raw/aporohiven |
|
|
| Report Abuse |
|
|
|
| 28 Jul 2016 11:30 PM |
JS example:
function dosomething(txt) { print(txt); }
var no = 3;
if (no == 3) { dosomething("yes"); }
if (no != 0) { dosomething("twice"); } else { dosomething("nope"); }
Lua example:
function dosomething(txt) print(txt) end
local no = 3
if no == 3 then dosomething("yes") end
if no ~= 0 then dosomething("twice") else dosomething("nope") end
--of course you cant use 'print' unless you have a function that supports it but this is a simple conversion |
|
|
| Report Abuse |
|
|
eter
|
  |
| Joined: 27 Jul 2008 |
| Total Posts: 10523 |
|
|
| 29 Jul 2016 12:04 AM |
I learned both PHP and Javascipt I used javascript for the tiny website I made for school, but i would recommend PHP it's so much better. |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 29 Jul 2016 12:12 AM |
| I prefer the mean stack. It's basically js for days, so you just need to learn one language + API |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
| |
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
|
| 29 Jul 2016 12:48 AM |
php is for server sided stuff js is client sided sql is database |
|
|
| Report Abuse |
|
|
Everoso
|
  |
| Joined: 26 Jul 2016 |
| Total Posts: 189 |
|
|
| 29 Jul 2016 01:06 AM |
JS can be server-side with Node.JS.
|
|
|
| Report Abuse |
|
|
Everoso
|
  |
| Joined: 26 Jul 2016 |
| Total Posts: 189 |
|
|
| 29 Jul 2016 01:07 AM |
If you want to learn PHP go for it but as Casualist says you can use the MEAN stack and just know JS with frameworks.
|
|
|
| Report Abuse |
|
|
sioux123
|
  |
| Joined: 18 Nov 2011 |
| Total Posts: 970 |
|
|
| 29 Jul 2016 01:23 AM |
javascript is good to learn unless your website is pretty advanced you wont need to learn php for a while |
|
|
| Report Abuse |
|
|