Archive for the ‘Development’ Category

Eames Cards

Sunday, October 26th, 2008

The theme that I chose was locations and buildings in Kansas.  I used the purple to accent the photo, and tried to pick something in the photo that was already ‘attention grabbing’.

Nick

Courthouse in Colby, KS

Rodeo in Dodge City, KS

Some Fireworks Fun

Monday, September 8th, 2008

Nick

Google Chrome

Tuesday, September 2nd, 2008

I have had it for all of 10 minutes, and it is ‘Bye Bye’ Firefox!  I am absolutely in love with it.

Get your FREE copy of Google’s new web browser here.

Nick

UPDATE! [X]HTML HowTo: Disable a text box.

Wednesday, July 23rd, 2008

The Code

A few things came up after I submitted the first post.

Say you have code similar to: <input type="text" name="username" id="username" value="Nick" disabled="disabled" />

Then, the user submits the form and you go to access ‘username’ via $username = $_POST['username']

Well, you might be surprised to find out that disabled="disabled" actually disables the value of the variable $_POST['username'].

Instead, if you want to keep the value of the text input, you should use the following code: <input type="text" name="username" id="username" value="Nick" readonly="readonly" />

Now, when you go to access $_POST['username'], you should still have the value of the input.

Graphical Differences

Disabled

Readonly

Happy Coding!

Nick

[X]HTML HowTo: Disable a text box.

Wednesday, July 16th, 2008

Good afternoon!

I figured I would start posting some minor tutorials on how to do some of the less common things with [X]HTML.

As the title denotes, today’s tutorial is on disabling* access to a text box. The code is simple enough, and can be found below:

disabled="disabled"

And, using it within the context of a form:

<input type="textbox" name="name_of_choice" id="id_of_choice" disabled=”disabled” />

And, there you have it. Your text box is disabled, and the user will not be able to change the value of the text box within the browser.

*For added security, do server-side form validation to make sure the value has not changed. Or, if you really want information to be unchanged, do not put the information within a text box, but rather print it to the screen.

Nick


This is a free Wordpress template provided by Mathew Browne | Web Design | SEO