for over a week now i have been having the problem of capturing a form post in ie when coding in php. after searching forums, blogs, etc, i have found a solution. frankly, ie must stop use. this method can also be used when the button is an image. so, here is the solution.
if( $_POST['nameOfTextboxt'] || ( $_POST["buttonType"] == "nameOfButton" ) && ( count( $_POST > 0 ) ) ) {
//var_dump( $_POST );exit;
// do whatever you want to do
}
this worked for me
As a programmer, there are no real problems but challenges...ones that we need to overcome. This means that there is a solution for all challenges that one may face. For all the challenges that I have faced, I will share them and their solutions.
Wednesday, September 30, 2009
Sunday, September 27, 2009
window positions on ubuntu
to change the position of the close, maximize and minimize buttons, check out this thread:
http://ubuntuforums.org/showthread.php?t=19413
http://ubuntuforums.org/showthread.php?t=19413
switched back to the ubuntu theme
i have loved the look of a mac machine but i cant afford it. from one of the earlier posts on my blog, i said that i had completely switched to linux.
the closest i came to owning a mac was the mac theme i had on my laptop. it was ok, looked good but i grew tired of it after a while and as usual, wanted something new. so i removed it and now im back to the original look of ubuntu. its not that much of an eye candy but thats not why i am using it.
the closest i came to owning a mac was the mac theme i had on my laptop. it was ok, looked good but i grew tired of it after a while and as usual, wanted something new. so i removed it and now im back to the original look of ubuntu. its not that much of an eye candy but thats not why i am using it.
Linux Distro Test
for people who are interested in linux but do not know which distro to choose, you can take this test and find out.
http://polishlinux.org/choose/quiz/
http://www.zegeniestudios.net/ldc/index.php
my opinion, i would recommend, ubuntu. it has a nice user interface and its pretty easy to use and learn.
http://polishlinux.org/choose/quiz/
http://www.zegeniestudios.net/ldc/index.php
my opinion, i would recommend, ubuntu. it has a nice user interface and its pretty easy to use and learn.
Saturday, September 26, 2009
hibernation on linux
i created another partition on my laptop & installed linux mint, i had a problem with the hibernation, to get it working i used this command swapon -a
Friday, September 11, 2009
Thursday, September 10, 2009
free fonts!!!!
i happen to accidentally delete all my true type fonts and i am now searching for fonts to install. i came accross this site that has some: http://www.broble.com/get/ubuntu-title/
Wednesday, September 9, 2009
javascript only numbers in textbox
heres the link to the site that has the code: http://www.java2s.com/Code/JavaScript/Form-Control/AllowingOnlyNumbersintoaTextBox.htm
Monday, September 7, 2009
php number of days in month
in my search for a method to get the number of days in a given month in php, i found one method from the php.net site. it uses the t variable in the date function. i tested it and it returned 31 days for the month of september. i found another method at the about.com site. i like it. this is how it works: $noOfDaysInMonth = cal_days_in_month(CAL_GREGORIAN, $monthIndex, $year) ; it takes the month index and the year and returns the number of days in that month.
Tuesday, September 1, 2009
Subscribe to:
Posts (Atom)