if (!empty($User_FName) AND !empty($User_SName) AND !empty($User_Address) AND !empty($User_Postcode) AND !empty($User_telNo) AND !empty($User_Email) AND !empty($User_Password) AND !empty($User_confirmPassword))
{
header('Location:reg.php');

exit(); echo"success";

}else{
echo"Please fill in all fields";
}

header('Location:Reg.php');exit();

}

if(isset($_POST['register'])){

if (!empty($User_FName) AND !empty($User_SName) AND !empty($User_Address) AND !empty($User_Postcode) AND !empty($User_telNo) AND !empty($User_Email) AND !empty($User_Password) AND !empty($User_confirmPassword)){ header('Location:Reg.php');exit();echo"success";

Hey guys, I'm having some issues with my redux application. I'm trying to create a pizza order/delivery app. I had initially set it up so that it used a Wizard form style of redux-form. However I noticed that peopple wouldn't be able to order more than one pizza. So i refactored one of my wizard form pages to be a fieldArray form that way I would be able to add extra pizzas. Anyway things have somewhat worked out. I just have an issue with the toppings component. I have it set it up so that it renders in a separate component then it's called from wizard form container. Now with the fieldArray form, I'm trying to get it so that each pizza's toppings are included in the pizza array. However the way it's working now, the toppings array comes over separately as it did before. Any help would be appreciated. Code to follow:

Hello I hope everyone is doing well. I'm working on the twitch API project and I need some help adding a second callback function to my getData function. I know I can use promises for this but I want to better understand callbacks before I move on.

can u guys tell me if im on the right place here im doing the fcc poll and im on authentication.. i am using cookie-session only since this is my first take to authentication i am using react in the front-end and express as server

this is a method on my client basically sends data to server and server validates it and return a boolean or a message if its true then i get redirected to /home if its valid

I'm on the very first front-end development project. I noticed that the sample view, and the lessons about bootstrap, have been using Bootstrap 3.3.7. Should I be learning Bootstrap 4 instead and teaching myself to use Flexbox?

@pmnord - I think that you can do either one, Bootstrap 3 is probably more pervasive if you would expect to be supporting an older site, but Bootstrap 4 is now officially released. There are significant differences between the two. Flexbox is good to know, too, it simplifies some tasks that used to be harder to achieve. But again, you might support a site that was using older techniques, so it's good to understand those, too. It might be best to spend your time on the newest techniques, though, and just watch for the bootstrap differences so you understand them... there is a migration document for going from bootstrap 3 to 4, it highlights the important differences. And there are many resources for learning flexbox.

I think that the freeCodeCamp beta site has lessons on flexbox, and I understand that bootstrap 4 lessons are either there or in beta testing themselves?

Hello folks. I'm trying to create an animation on scroll, here is the code https://codepen.io/anon/pen/yvmRjJ?editors=1111, so my idea is to turn that damn circle on scroll and each section has own angle and color of that circle. That error has been torturing me for days. Any help? Advice? Many thanks!

So I have a general question. When it comes to things like: margin, padding, width, height I found giving that using a percentage has always been problematic. It usually results in adding a lot of unneeded space when changing the browser's window size or just recently I found that setting an image's width to 50% shrunk the image, but gave all the text right to right of it the same amount space as if the image was at 100%. I have just been changing these things by exact pixels now, but I wonder, when is the percentage ever ideal to have when adjusting the styling?

Percentages are responsive on mobile platforms. Using px has a fixed size. For example you have an img at width 50% this will take up 50% of the screen width or div container. This allows the img to shrink on smaller screens as it takes up 50% width of the screen size. If you have img 250px this will always be 250px not matter what device you are using. So to have a more responsive design on mobile or tablets you would mostly use percentages.

I can't call that from anywhere else though. I'm just looking for a way to set the form values to an object so that I can actually submit themsorry I mean I can't call orderValues and when I log FetchValues I don't actually get what I want

<divclass="container-fluid"style="background-color: pink"><divclass="row"><divclass="col"><h1class="mt-4 mb-2 text-center text-white text-capitalize">RECENT WORKS</h1></div></div><divclass="row"><divclass="col-sm-6 col-md-4 col-lg-3 offset-md-2 offset-lg-3 mt-4"><divclass="card"><imgclass="card-img-top"src="https://s26.postimg.org/5iiyfm521/img-11.png "alt="Card image cap"><divclass="card-body"><h5class="card-title">Card title</h5><pclass="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p><ahref="#"class="btn btn-primary">Go somewhere</a></div></div></div><divclass="col-sm-6 col-md-4 col-lg-3 mt-4"><divclass="card"><imgclass="card-img-top"src="https://s26.postimg.org/5iiyfm521/img-11.png"alt="Card image cap"><divclass="card-body"><h5class="card-title">Card title</h5><pclass="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p><ahref="#"class="btn btn-primary">Go somewhere</a></div></div></div></div></div>

hey guys, I'm working on the pomodoro timer and I need a little help. I'm trying to get the timer to countdown when the user clicks on the timer, but it won't work. I've checked the console and there are no relevant errors (besides the CORS error that is default to codepen)https://codepen.io/AmitP88/pen/ZxWRmx?editors=1010

@AmitP88 Also, you may be seeing it count down more quickly because if you click on the time a second (or third) time, it will fire off your setInterval again. A flag to determine if the clock is running will also be needed

@sjames1958gm I've been working on it and I'm getting my countdown to work (I'm only using 25 mins converted to seconds for now as 1500 seconds), but now i'm trying to get "time's up" to display in the countdown div when the seconds countdown to 0

@sjames1958gm hey, I noticed that when the timer runs out and is on zero, on a second click, it will go -1 then stop, -2 then stop, etc. Would it be appropriate to add seconds = 0 after the clearInterval call?

I noticed that it works and that on second and third clicks after timer runs out that it remains zero, but I'm wondering if this will cause issues later on

@AmitP88 Depends on what you want to do? Do you want the next click to reset the counter back to 1500 and count down again.Or when it runs out it resets itself back to 1500 so they start it over again. You are moving from getting it to work to getting it to work like you want.

@AmitP88 Using a remainder might work, but might be a bit confusing. Maybe just store a state variable.You could have constants defined for each state.const STOPPED = 1;const STARTED = 2;and so on.Then advance a state variable through these states using a switch statement in your click handler

@sjames1958gm however, I'm noticing one thing, whenever I start the countdown there's a 1-2 second delay before it starts counting down on the div, whereas the countdown happens immediately in console. In other words, the console countdown ends up being about 1 second ahead than the div countdown

@sjames1958gm oh you mean seconds? it decrements by 1 each time the function is fired (which due to setInterval being set to 1000ms, every 1 second). so basically it goes down by second - 1 each interval

however, I still don't quite understand why the first one is 10 and second one is 9. first one is count--, so wouldn't it be count = count - 1? the --count doesn't make much sense to me, which is why I thought it would be undefined

@AmitP88 Yes, but having seen these kinds of things a lot they detect them more quickly.Just from you description of what was happening I kind of knew where to look and what to look for.But, I have been doing this a long time

I can assure you that more than once a day I will call myself a "dumbass" for making a "simple" mistake

lol I just need to practice more then. sometimes it's frustrating because it'll take me a while to get going. like for instance, I've been trying to figure out how to approach this project for the past few days, and I've made more progress today than I have the past 3+ days