Monday, 26 October 2009

Blank Data Being Input

The form I have created to submit the users dreams is really starting to annoy me now! I can submit the name and dream into the database fine. I've even added a timestamp field in the table to record the date and time the data was submitted (which is very useful). The problem I've been having is to validate the form. When the submit button is clicked on and there is no data in the fields, blank data is submitted to the database. This is not what I want to happen. I want the fields to be mandatory and if they are not filled in and the submit button is pressed then a message will show the user that they need to fill in the required fields. I have the error messages coming up when the fields are not filled in, which is great. However, the problem is blank data is still being submitted to the database and I'm struggling to find away around the problem.

Thursday, 22 October 2009

Submitting A Dream

After yesterday's troubles with lack of inspiration I decided to make a start on one of the main functions of the website - submitting a dream. To do this I needed to create a form to allow the user's to fill in and a database that would store the data that is being input via the form. After creating these two elements of the website, I had to link them with PHP. It took me a while to write the code. I first got the ID number of the dream increasing when the submit button was clicked. However, I could not understand why the data that was being entered in the fields were not being entered into the database. It took a while of going back and through the code until I realised that the variables I set at the start of the PHP script were not written in all lowercase as they started with a capital letter. As soon as I changed this and clicked on the submit button with data in the form, the data was being submitted to the correct fields in the table of the database. This was a good learning point for me, as I now realise that I need to write all code in lower case letters.

Wednesday, 21 October 2009

Design Block

So after coming up with several layouts by wire frames, I chose the layout I thought was best for the site and started to code it. This was done easily, as the layout is quite basic, (it's intended to be) and so I wanted to make a start on the visual design of the site. However this has proved to be a problem at the moment. I came up with one design and soon decided it wasn't up to scratch, so scrapped it completely. Now as I write this I cannot seem to picture how I want the website to look visually. I know what goes where, but I cannot think of the right colour scheme that corresponds well with dreams. I'm thinking of a rainbow/many bright colours theme, as dreams can be so random, it seems that having a mix of bright colours may be the right way to move. I'm also unsure of what textures, if any, I should use. Hopefully some inspiration will come to me soon.

I've currently moved from my first logo that I made









To this much more colourful logo


Sunday, 18 October 2009

What's Happened So Far

OK, so the first month has been quite hectic! We had to come up with the initial idea of what we were going to do for our projects. The idea I came up with was a website that allowed users to share their dreams with other users. People would be able to say if the dream was a good dream or a nightmare, and add their comments too.

Before even creating the website, I needed to collect as many dreams from people as possible. This is so I can populate the database when building the site, allowing me to get an actual sense of how the website is going to function. To do this I created a Facebook group and invited all my friends and asked them to submit dreams that they have had recently.

I have also started to create some wire frames to see the different layouts and designs that could possibly be used. These give an indication of how the users will navigate around the website and how the site will be used in general. By using wire frames, I can easily change the layout of the website before implementing it fully. So I can come up with the ideal layout before I have even started designing the website.