I am trying to learn objective C with my brother and I have stumbled onto a problem involving one trying to collect a user's input and checking if it is odd or even. I made this, and this works to test if a number is even or odd: #include <stdio.h> int main(){ int num = 22; if (num % 2 == 0) { printf("Yep. "); } else { printf("Nope. "); } } But how do i get it so that I can take what a user input is and run it to see if it is even or odd? This …

Member Avatar
Member Avatar
+0 forum 2

Lets get "nosy" about each other. So lets just ask those childish questions where you would be like, "Have you ever... went to Las Vegas". Do you guys get it? When you answer the above post, you can ask your own. Alright... Hopefully you guys get it. Here is the first one: **Have you ever ran a marathon?**

Member Avatar
Member Avatar
+1 forum 144

I am working on adding security onto my contact form and I can't seem to find the reason as to why I get errors. Currently, when I test the php form, I get this error: Parse error: syntax error, unexpected T_IF in /home/content/86/5284386/html/websitenamewashere/contact.php on line 16 Here is my php: <?php   if(isset($_POST['email'])) {                 $to = "yahoo@gmail.com";       $subject = "Contact Form Submission;         function died($error) {             echo "We are very sorry, but there were error(s) found with the form you submitted. ";           echo "These errors appear below.<br /><br />";           echo …

Member Avatar
Member Avatar
+0 forum 23

Hey guys, I am working on my contact form for a site of mine (i am designing the form differently) that is for a child care, and I can't seem to get the form to connect with the php in order to get it to send verification to the user, send me a copy, and record it within a csv. Here is the html form that goes on the page: <form action="#" class="footer-form" action="contact.php"> <p class="title">Feel free to write some words</p> <div class="form-group"> <strong><input type="text" class="form-control" id="contactname" id="contact-name" placeholder="Your Name:"></strong> </div> <div class="form-group"> <strong><input type="email" class="form-control" id="contactemail" id="contact-email" placeholder="Your E-mail:"></strong> …

Member Avatar
Member Avatar
+0 forum 22

Think of someone's career/job and think of what will make you go "wait, what?"... Basically an irony is being built (i don't think irony is the best word). Anyways: Here is an example: A vet owning a slaughter house. Do you guys get it? Anyways, that was the first one. It's your turn.

Member Avatar
Member Avatar
+0 forum 22

Does anyone here know of a generator that can automatically create tables for you? Basically, I have a site with over 100 pdf files in it, and I want to put them in a table so that they display in a list. Is there a generator that can create the table for me without me having to create each individual link to each pdf? I don't know if that makes sense or not.

Member Avatar
Member Avatar
+0 forum 3

I am just bored... and curious... and i have not made a thread here in a long time. What languages can you guys speak? Atm, for me: 1. English 2. Farsi (simplified and mixed version of dari) 3. Dari (basically same as farsi, but more formal and traditional, if you speak dari, you speak farsi. This is my dad's main language) 4. Spanish (forced to take it at school) 5. Arabic (read quran in this language, so it is a must for me to know) 6. Pashtu (my mom's main language) And as a bonus: 7. Urdu (my mom taught …

Member Avatar
Member Avatar
+0 forum 25

I am trying to update my avatar and for some odd reason it says that I am 100 years old and I can't update it? My birth year is '98 and every time i update my avatar, it shows back 08/08/1914 (i keep udpdating my proper birth year)... and it says that, `Sorry, you cannot be over 100 years old. Good for you, though.` All i wanted to do was change my avatar cuz it felt old... and now I feel daniweb doesn't have faith in users being 100 years old :P

Member Avatar
Member Avatar
+0 forum 9

When it comes to the role of the iconic character, Joker, who played it best? Jack Nicholson or Heath Ledger? I believe Heath Ledger played it, by far, the best and no one will ever play the joker like he did. Jack Nicholson on the other hand was more of the comic version of him. I now wonder new variation we get of the joker from Jared leto... My vote: Ledger You guys?

Member Avatar
Member Avatar
+0 forum 9

I am trying to collect my form inputs into a csv file and for some reason the csv file records some of the styling and does not display numbers (phone number and date). I am not sure where I got it wrong. Here is what I have so far. <?php $name = $_POST["name"]; $email = $_POST["email"]; $phone = $_POST["phone"]; $meeting_type = $_POST["meeting_type"]; $time = $_POST["time"]; $message = $_POST["message"]; $to = 'yahoo@gmail.com'; $subject = 'Contact Form Submission'; $v1 = " <html> <body> <style> h1 {color:#000066;} table {border:1px solid black; background: #e3f0ff;} </style> <h1>Hello, this form has been submitted!</h1> <img src= 'site.png' …

Member Avatar
Member Avatar
+0 forum 10

I created a form a long time ago (roughly 2 years ago) and I stumbled onto a problem. I know how to record a contact form input when it comes to them typing in whatever they have to say (such as their name) but how do I get it so that I collect the input from something such as a radio button/a selection?

Member Avatar
Member Avatar
+0 forum 37

Is there a way to connect wordpress and dreamweaver together, in an easy way? I have been getting frustrated with templates that I use and now i want to completely modify them so that they fit my needs. I want to be able to make a change on dreamweaver and have it show up on my wordpress site. I have been searching for tutorials but they all say i need wamp/xamp/lamp/and so on with the amp's. I use GoDaddy for hosting.

Member Avatar
Member Avatar
+0 forum 4

What is your favorite thing/person/animal/etc.? Basically, all you do is say what is your favorite based off of the previous persons subject. For example, **Favorite Forum** Response: **Daniweb**. And after you give your response, put in another question saying what is their favorite whatever. Okay, hopefully you guys get it... lets start. What is your favorite **breakfast food**?

Member Avatar
Member Avatar
+3 forum 164

Is there a possibility to create a cloud repository/storage for certain users to have access to? I was looking for ways to use something like google drive, dropbox, and github on the site but i am not sure where to find an api or some way to implement it... To sum things up, i just want to put google drive/dropbox/github/etc. on one of my sites for users to be able access files and download them. Thanks.

Member Avatar
Member Avatar
+0 forum 15

I seem to not be able to identify why the styling does not appear at all on my page... Did i reference something incorrectly? It all appears right to me... syntax, quotes, tags all look right. Does anyone have an idea what may be happening? Sorry if my question is unclear, I am frustrated with this website :) <!DOCTYPE html> <html> <head> <title>ProjectX</title> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> <link rel="stylesheet" type="text/css" href="http://mywebsite.com/projectx/node/node/style/jquery-ui.css"/> <link rel="stylesheet" type="text/css" href="http://mywebsite.com/projectx/node/node/style/jquery.qtip.css"/> <link rel="stylesheet" type="text/css" href="http://mywebsite.com/projectx/node/node/style/colpick.css"/> <link rel="stylesheet" type="text/css" href="http://mywebsite.com/projectx/node/node/style/jquery.jScrollPane.css"/> <link rel="stylesheet" type="text/css" href="http://mywebsite.com/projectx/node/node/style/jquery.nivo.slider.css"/> …

Member Avatar
Member Avatar
+1 forum 32

Hey guys, how do i logout of the onedrive account from the windows 8.1 app? I am planning on using a new account and I can't seem to find the logout for the app... is there any solution?

Member Avatar
Member Avatar
+0 forum 4

For some odd reason, this whole week, my phone hasn't managed to get even 10% charge on it after charging it overnight. Basically, I plug it in at night, charge it for at least 7 hours, and in the morning it'll have about 10% charge. Why does it do that? It seems that while the phone charges, when recieving a notification, blocks it from charging even if it is powered off...

Member Avatar
Member Avatar
+0 forum 21

Dart is a new language from Google. Has anyone found any tutorials for learning this language? I haven't seen any books/resources for this language yet... If anyone has, can they share it? So far, the Dart language's website is the only one i see available.

Member Avatar
Member Avatar
+0 forum 2

I am trying to study javascript in deeper detail due to some pretty embarrising mistakes i made on my site yesterday. I use some pretty nice sites and books and i was curious to know what sites or books do you guys know of that are pretty effective when it comes to teaching javascript. I will make a list of the sites/books that i currently use, hopefully tomorrow.

Member Avatar
Member Avatar
+0 forum 2

I thought this maybe a useful way to keep traffic within daniweb but what if you (Dani) made it so that when you click on a link, it opens a new window or better, new tab. It gets kind of annoying when opening them in the same window. just a recommendation.

Member Avatar
Member Avatar
+1 forum 7

I learned how to make a storm, and this is how you do it: HTML: `<div class="stormy"></div>` CSS: /* STORMY */ .stormy { animation: stormy 5s ease-in-out infinite; background: #222222; border-radius: 50%; box-shadow: #222222 65px -15px 0 -5px, #222222 25px -25px, #222222 30px 10px, #222222 60px 15px 0 -10px, #222222 85px 5px 0 -5px; height: 50px; width: 50px; margin-left: -60px; position: absolute; left: 947px; top: 70px; }

Member Avatar
Member Avatar
+2 forum 4

When I have my browser snapped onto the view where it takes up half my screen and have the code snippet window, it only reveals half of the window (half has been cut off) and when I put it in full screen, the window seems to get fixed onto the side of the page (still cut off)... Has anyone noticed that yet by any chance?

Member Avatar
Member Avatar
+0 forum 9

I figured this might be a useful tool to add but I think that there should be a report user button to report users of abuse... I thought it might be useful...

Member Avatar
Member Avatar
+0 forum 7

So... who do you guys think is going to win the finals this year? It is between: Heats, Pacers, Thunders, and Spurs. I personally believe that it will heats and spurs playing in the finals and the heats are going to win it for the third time in a row. They might win at game 6 or 7. What do you guys think?

Member Avatar
Member Avatar
+0 forum 3

I am trying to create a way so that I can collect 5 points within the (x,y) format. Then, I want to take those points and plot them on a coordinate plane. I am not sure how to write this, espicially when I am only planning on PHP. I have successfully created something like this before but it was made to take an equation yet using Javascript rather than php. Anyone got any resources for this? I couldn't find anything on this, I even used wolfram's widget builder and didn't achieve success. Thanks in advance!

Member Avatar
Member Avatar
+0 forum 14

Hey guys, I am back from the dead (i don't mean it literaly)... I was working on a graphing calculator and I stumbled onto a random problem, which i know is really simple, but I constantly keep over working it (and now I am tired...) to the wrong direction. In my calculator, i have created it so that I can graph 1 line but then I decided to challenge myself a bit and try to graph 2 lines (or more) on the same graph. How do I make it so that I can graph at least 2 lines on the …

Member Avatar
Member Avatar
+0 forum 1

What is your favorite body part(s)? For me it is my brain (and all the muscles that account for people consider me as being "jacked"). What about you guys?

Member Avatar
Member Avatar
+0 forum 16

What is the best web editor for windows 8. (aside from dreamweaver) I have heard Microsoft has something called expression I believe, I think that would be good. What is the best by your guy's opinions? I recently got a brand new Lenovo Yoga13 Ideapad and i wanted to put in as much software that I can get for my uses... incase you were wondering...

Member Avatar
Member Avatar
+0 forum 10

Hey guys... random question here but what does it mean when your dog's ear gets really greasy, stained, and smelly? Is that sort of thing treatable at home? One of my dog's has recently obtained this problem about 2 hours ago and it is kind of concerning me. If you lift up his ear, it is nasty and smelly. He is a small, long haired havenese with floppy ears and is 1 year of age. Anyone of you daniweb dog owners aware of something like this?

Member Avatar
Member Avatar
+0 forum 27

I can't seem to be able to remove a rotten adware called keep now.... i can't even find the location of it and I see it on all my browsers. anyone know how to remove this? It shows up on all sites that i go to, including this one...

Member Avatar
Member Avatar
+0 forum 1

The End.