Wednesday, November 30, 2011

    <?php



if (isset($_POST["submit"])) {
    $intFirstLoad = 0;
    $strTitle = $_POST["strTitle"];
    $strFirstname = $_POST["strFirstname"];
    $strSurname = $_POST["strSurname"];
    $strUsername = $_POST["strUsername"];
    $strPassword = $_POST["strPassword"];
    $strPassword2 = $_POST["strPassword2"];
    if ($strFirstname != NULL && $strSurname != NULL &&
        $strUsername != NULL && $strPassword != NULL && $strPassword2 != NULL) {
        echo "<p>Greetings $strTitle $strFirstname $strSurname</p>";
        echo "<p>Your username is $strUsername and your password is $strPassword and $strPassword2</p>";
    }
}
else
    $intFirstLoad = 1;
?>

<h2>Enter stuff..</h2>

<form action='<?php echo $_SERVER["PHP_SELF"]; ?>' method='post'>

<?php if ($strTitle == "Select..." && $intFirstLoad == 0) echo "Not Selected" ?>
</p>
<p>
<label for="strFirstname">Firstname: </label>
 <input type='text' name='strFirstname' id='strFirstname'/>
<?php if ($strFirstname == NULL && $intFirstLoad == 0) echo "Not Entered" ?>
</p>
<p>
<label for="strSurname">Surname: </label>
<input type='text' name='strSurname' id='strSurname'/>
<?php if ($strSurname == NULL && $intFirstLoad == 0) echo "Not Entered" ?>
</p>
<p>
<label for="strUsername">Username: </label>
 <input type='text' name='strUsername' id='strUsername'/>
<?php if ($strUsername == NULL && $intFirstLoad == 0) echo "Not Entered" ?>
</p>
<p>
<label for="strPassword">Password: </label>
 <input type='password' name='strPassword' id='strPassword'/>
<?php if ($strPassword == NULL && $intFirstLoad == 0) echo "Not Entered" ?>
</p>
<p>

<p><input type='submit' name='submit'/></p>

Thursday, November 17, 2011

I have the homework section of my site up, as I  cannot turn in assignments without uploading it to my personal webspace, and since I was making a site, and would like practice, I though "eh, why not?"

I do not intend to keep each item I post on their, I will make a page for end of term papers and such, but not assignments worth 5 points.
http://webspace.globeuniversity.edu/arthur.taylor/

php code as follows

<p>Using loop constructs, produce a PHP script which will output a calendar for a normal February (28 days).<br />  You will need to define variables to contain the start day of the month (Sunday, Monday, etc.) and the number of days in the month.<br />
For each day of the month that is an even number, print the value in bold text. Begin the Month on Saturday </p>

<?php
// File: exercise9-6.php

$intStartDayOfMonth = 6;    // Tuesday Start of Month
$intDaysInMonth = 28;       // Days in Month
?>
<table border = '1'>
<tr><td>S</td><td>M</td><td>T</td><td>W</td><td>T</td><td>F</td><td>S</td></tr>
<tr>
<?php
for($intCurrentWeekDay=0;$intCurrentWeekDay<$intStartDayOfMonth;$intCurrentWeekDay++)
    echo "<td></td>";
$intDay = 1;
while($intDay <= $intDaysInMonth) {
if ($intDay % 2)
echo "<td>$intDay</td>";
else {
echo "<td><b>$intDay<b></td>";
}

 
    $intDay++;
    $intCurrentWeekDay++;

    if ($intCurrentWeekDay == 7) {
        $intCurrentWeekDay = 0;
        echo "</tr><tr>";
    }
}
for(;$intCurrentWeekDay<7;$intCurrentWeekDay++)
    echo "<td></td>";
?>
</tr></table>

Thursday, November 10, 2011

Website!!!

I've decided instead of making an app, to make a website for my self instead, this way I dont have to learn a new language, which I dont have the time to learn at the moment, and I can use this site as a portfolio to show off other projects I've done or the app if I come back to it.


Other than that, had mid terms this week, and we started php in the web tech class.(only done bitwise arithmetic so far)

Tuesday, November 1, 2011

nov 1st

So one of my friends from work who goes to the U of M was telling me about how he and a group of others came up with an idea for a mobile app, which got me thinking "what can I do that I can put in my portfolio". Something that I think will be easy enough, but still a strong enough concept that I can say "I did this" and still be proud of it, is a World of Warcraft add-on.

The first thing I have to do is learn quite a bit of Lua, which is the language that Blizzard uses to program add-ons.

Second, my initial idea is to make a program that adds all auctions that you have up for auction on the auction house and print how much money you would get if everything would sell at that point.


On other notes we start PHP next Monday, at the moment we are working on javascript.
Our first project was to create a table with the numbers 1-10 and their squares, then add all the  numbers in the column at the bottom of the page.
http://webspace.globeuniversity.edu/arthur.taylor/unit4.html

Thursday, October 27, 2011

whats going on...

I've been extremely busy the last 3-4 weeks, but everything has cooled down at least for the moment.

So what ive been up to then....

If I havnt said yet, for my Web Tech class, we are making a web site for the VFW(post 5555). At the moment im in charge of gathering pictures, and more of a non-assignment item, gathering information. At the present time we have a mock up of the home page, and I think someone is working on making mock ups for each page on the navigation bar. But anyway were having the person from the VFW come back so we can talk about what he wants on each page.

2 Ideas that I would personally like to pull off are a facebook page; I noticed that when the rep from the VFW was showing us a few other pages he liked a few had facebook pages.
The other is a meetup page, this comes from seeing that they have a lot of random events going on, and a meetup page would help them organize who is coming and who may be going , however, someone mentioned a calender might be better for that goal, which it may, but we will have to see how the rest of the site turns out.

I decided to drop Programming 2 and do an audit of Programming 1. I feel that I need to get a better understanding of the fundamentals of C++ before I can move on to more advanced things like searching and sorting.

We have been talking about many things in intercultural communications. For the last 2 weeks the topic has been on religion and its part in society, we had to write a paper on one of 3 different choices, mine was on negative portrayals of religion in film. I went further and focused on Atheism because the text book that I am using mentions them once by name and secularists twice(and make the mistake of saying secularists say "there is no god")

There was also an error in our text book that read something like "Moses was the founder of Judaism" My instructor asked me and another student(about another error he found) to write letters to the authors of the book about the errors we found in the book.

That is all for the moment

Tuesday, October 11, 2011

10/9

The semester started on Monday last week.

Programming 2: we started on recursion in the first week, its a rather simple concept, Its more/less a min loop, but instead of starting at the first case, it starts with the last case. An example is in the previous post; what we wanted to do for that assignment is find the greatest common divisor.
We first had to define the largest and smallest numbers in the list to find the modulo, the if statement asks "if this "smaller" number is bigger than this "larger" number then redefine "larger" and smaller(smaller and larger being the parameters) we then put larger against smaller for the modulo, if the answer we got was 0 we returned it as is, if it wasnt, we redefined larger to smaller and smaller to rem and then returned it.