Question #1:
HTML CSS PHP.........?
Hi-Just started programming.
I have a long link, that I would like to refer to at several different spots and pages of my site. Is there a tag / code, that allows me to save the link just at one destination, giving him a short definition, and everywhere where I will put it, I just refer to this definition and the link is automatically be loaded?
Question #2:
Porting PHP to Javascript.?
I know a little Javascript, but I'm far mrore 'versed' in PHP programming. I notice Javascript can 'validate' form data on the client-side -- thus offloading the server -- I guess this means I'm going to have to port 1,000s of lines of PHP form validation code.Before I start this 'task', I was wondering if could suggest anything to make this easier?
Additionally, is it a security risk to make an exact Javascript imitation of my PHP validation code, because if the black hats know my client-side code they'll know PHP source, right?
Aware that Javascript can be turned off.
Anyone decent validation libraries?
Question #3:
how can i make this in VB 2008?
write a program that determines the cost of an automobile insurance premium based on the basic insurance charge (Php 500.00), the number of accidents that the driver has had and the driver's age.there is a surcharge of Php100.00 if the driver is under 25 years old and an additional surcharge for accidents:
# of accidents accidents surcharge
1 php50.00
2 php125.00
3 php225.00
4 php375.00
5 php575.00
6 no insurance
Question #4:
I need help about PHP program?
I made a program that will ask for employee number, hourly salary, weekly time and compute for the regular pay, overtime pay, total income but I'm still having a hard time how to input an excess hours on overtime pay. If an employee input on weekly time greater than 40 hours, the excess hours will be his overtime rate per hour and also equal on his hourly salary but I dont know how to put an excess hours on overtime? What should I use? Should I use if else statement? Here's my recent code:<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>"SALARY"</title>
</head>
<body>
<?php
if(isset($_REQUEST['submit']))
{
$EN=$_REQUEST['empnum'];
$HS=$_REQUEST['hoursal'];
$WT=$_REQUEST['wklytme'];
switch($EN)
{
case 00001:
$sal=$HS*$WT;
echo "Employee #: ".$EN ."
";
echo "Employee Name: Uncle Sam
";
echo "Hourly Salary: ".$HS."
";
echo "Weekly Time: ".$WT."
";
echo "Regular Pay: ".$sal."
";
echo "Overtime Pay:
";
echo "Total Pay:
";
break;
case 00002:
$sal=$HS*$WT;
echo "Employee #: ".$EN."
";
echo "Employee Name: Aunt Sam
";
echo "Hourly Salary: ".$HS."
";
echo "Weekly Time: ".$WT."
";
echo "Regular Pay: ".$sal."
";
echo "Overtime Pay:
";
echo "Total Pay:
";
break;
}
}
else
{
?>
<form action="salary.php" method="POST">
<label>Enter Employee Number (00000): </label><input type="text" name="empnum"/>
<label>Enter Hourly Salary: </label><input type="text" name="hoursal"/>
<label>Enter Weekly Time: </label><input type="text" name="wklytme"/>
<input type="submit" value="Enter" name="submit"/>
</form>
<?php
}
?>
</body>
</html>
i got 10 employees.
Question #5:
What of these are necessary for my computer?
and which ones can i delete?? cause i don't want to accidentally delete a program that helps the computer run or something for an update...I'll post the pictures of the stuff and if you could..like, save the picture and circle which ones are necessary and post it in the answer that would be great ^_^
(im a noob with this stuff...only 14 years old >_>)
Click Here
Click Here
Click Here
best answer goes to the first person who replies with what i wanted 8D
Question #6:
PHP program. Need your help?
Hello. I am going to create a program that will ask for employee number, hourly salary, weekly time and it will compute for the regular pay, overtime pay and total pay and then if the employee input weekly time greater than 40 hours, the excess hours will be his overtime hours and his overtime pay hour is also equal to his salary per hour. What should I use? Switch or If else? I tried switch statement but it doesn't display when i click enter button. Here's my code:<html>
<head>
<title>"SALARY"</title>
</head>
<body>
<form action="salary.php" method="POST">
<label>Enter Employee Number (00000): </label><input type="text" name="empnum"/>
<label>Enter Hourly Salary: </label><input type="text" name="hoursal"/>
<label>Enter Weekly Time: </label><input type="text" name="wklytme"/>
<input type="submit" value="Enter" name="submit"/>
</form>
<?php
if(isset($_POST['submit']))
{
$EN=$_POST['empnum];
$HS=$_POST['hoursal];
$EN=$_POST['wklytme];
switch($empnum)
{
case 00001:
$sal=$_POST['hoursal']*$_POST['wklytme…
echo "Employee #: 00001
";
echo "Employee Name: Uncle Sam
";
echo "Hourly Salary: ".$hoursal.".
";
echo "Weekly Time: ".$wklytme.".
";
echo "Regular Pay: ".$sal.".
";
echo "Overtime Pay:
";
echo "Total Pay: ";
break;
case 00002:
$sal=$_POST['hoursal']*$_POST['wklytme…
echo "Employee #: 00002
";
echo "Employee Name: Aunt Sam
";
echo "Hourly Salary: ".$hoursal.".
";
echo "Weekly Time: ".$wklytme.".
";
echo "Regular Pay: ".$sal.".
";
echo "Overtime Pay:
";
echo "Total Pay: ";
break;
}
}
?>
</body>
</html>
----
and i dont find any error on that. Am I doing it right? and how can I input an excess hour on overtime pay?
and I got more than 10 employees, so should I use switch or if else statement?
Question #7:
Need help about PHP program?
Hello. I am going to create a program that will ask for employee number, hourly salary, weekly time and it will compute for the regular pay, overtime pay and total pay and then if the employee input weekly time greater than 40 hours, the excess hours will be his overtime hours and his overtime pay hour is also equal to his salary per hour. What should I use? Switch or If else? I tried switch statement but it doesn't display when i click enter button. Here's my code:<html>
<head>
<title>"SALARY"</title>
</head>
<body>
<form action="salary.php" method="POST">
<label>Enter Employee Number (00000): </label><input type="text" name="empnum"/><br />
<label>Enter Hourly Salary: </label><input type="text" name="hoursal"/><br />
<label>Enter Weekly Time: </label><input type="text" name="wklytme"/><br />
<input type="submit" value="Enter" name="submit"/>
</form>
<?php
if(isset($_POST['submit']))
{
$EN=$_POST['empnum];
$HS=$_POST['hoursal];
$EN=$_POST['wklytme];
switch($empnum)
{
case 00001:
$sal=$_POST['hoursal']*$_POST['wklytme'];
echo "Employee #: 00001 <br />";
echo "Employee Name: Uncle Sam <br />";
echo "Hourly Salary: ".$hoursal.".<br />";
echo "Weekly Time: ".$wklytme.".<br />";
echo "Regular Pay: ".$sal.".<br />";
echo "Overtime Pay: <br />";
echo "Total Pay: ";
break;
case 00002:
$sal=$_POST['hoursal']*$_POST['wklytme'];
echo "Employee #: 00002 <br />";
echo "Employee Name: Aunt Sam <br />";
echo "Hourly Salary: ".$hoursal.".<br />";
echo "Weekly Time: ".$wklytme.".<br />";
echo "Regular Pay: ".$sal.".<br />";
echo "Overtime Pay: <br />";
echo "Total Pay: ";
break;
}
}
?>
</body>
</html>
----
and i dont find any error on that. Am I doing it right? and how can I input an excess hour on overtime pay?
and I got more than 10 employees, so should I use switch or if else statement?
Question #8:
Should British People refuse to pay the TV Licence fee if the BBC is in briech of its own charter?
The BBC has been taking funds from the EU and has become apropaganda machine for the EU and its agendas. In order to legally
extract a license fee the BBC must stick to its own charter and be
independent is this not so?
As we are the only country, as far as I am aware, who are forced, often against our will, to pay for Independent broadcasting, that the BBC and its subsidiaries have a duty to be independent and not promote the values, ideals and agendas of the EU, or any other country for that matter.
The United Kingdom is a Sovereign Nation!
They are supposed to report honestly matters which affect the population of our country, not represent the interests of the elite, and suppress the truth on real issues from going to press, such as this for example:
Click Here
Why should we pay for worldwide broadcasting, when other countries get the programs and do not pay for them? Or do they, are the BBC making profit from selling broadcasts? If so, should the share holders not have a share of such profit, and who are the share holders, other than fee payers?
I have stopped paying and will continue not to pay until I am certain that I am not paying for corruption and propaganda. I have not paid anything for the last three months, and have explained to the BBC, in writing why I am taking the stance I have. They have been unable to provide me with a satisfactory response or answer the serious concerns I have raised and provide me with a reason for their treasonous behavior, and sedition. I will not risk facing treason charges at a later date, for aiding and abetting this corrupt corporation.
Maybe you all should too.
Click Here
Question #9:
can i take grade 12 English in summer school?
so i wanted to become an architect and i really don't like English because of the teacher . sooooo if i took it in summer school, and a university was to look at it would it appear differently than if i took it throw the school year?Click Here
i wanted to go to UOfT (St. George, Ontario, Canada )because my sister already goes there and i like the thought of going there.
so it said they "pay particular attention to English" would that mean they would pick a person who took English in the school year over me if our marks where the same?
Question #10:
why do illegal parents prefer that their children maintain their native tongue - mostly Spanish be taught in?
why do illegal parents prefer that their children maintain their native tongue - mostly want Spanish public schools to be taught in Spainsh ? Is this further proof illegals have no desire to adapt to America, but want America to be the same as Mexico ?The statistic was so troubling that Houston schools Superintendent Terry Grier said he asked his data guru three times to check it.
Only 30 percent of the district's students with limited English skills graduate high school with their class - a rate that places HISD at the bottom of the state's largest districts.
Grier pledged this week to improve how the district educates students whose native language is not English, responding to a critical outside review that suggested increasing the amount of English instruction in elementary school and ensuring that the teachers themselves speak the language well.
The subject can be a touchy one, as some parents would prefer that their children maintain their native tongue - mostly Spanish - while others want them to become immersed in English immediately.
"Our staff has had a lot of debate," Grier said. "How much English should be taught? How much Spanish should be taught? We need to figure that out, and we need to figure out why our results are not any better than they are."
Roughly 62,000 students, or 30 percent of the children in the Houston Independent School District, were designated as limited-English proficient last year.
HISD, in most of its elementary schools, offers a traditional bilingual program for native Spanish speakers, where teachers decrease the amount of Spanish used each year. Students transition into English-only classes by fifth grade, if not sooner.
Click Here
Question #11:
Desktop or Laptop for an IT Student?
Hi, i'm a second year IT student here in the Philippines, i'm confused if what computer should I buy that suits to my need as an IT. My budget is 50k php or 1162 usd. I will be using it for programming, graphic works (cs5) and gaming. ThanksQuestion #12:
Help i think i may have been scammed by this website!?
Click HereI was trusting my friend to get me a good copy of sims 3 and other games for me with cd keys which you can use to activate on programs like steam and origin to get your games. when the purchase has been made from that website we have been waiting for a week for the games to be shipped to us but then my friend found the rewiews
Click Here
as you can see they were posted by the same person a few times in a row so that made us suspicious about the cd keys.
so we may have been scammed so can you see if this place is really is a scam or are we still waiting for our games
Question #13:
The PHP mail() error.(I need someones help.)?
I am writing a program and the error as is:Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\website\www.solutions.com\includes\processmail.inc.php on line 79
so how i can make sure that mail is sent
Question #14:
I've a practical test on PHP MYSQL please help me out?
Please help me out..what codes or what programs i must learn before i move on to the practical tests!!!Question #15:
What is the technology behind RDP/RDC and other remote desktop capabilities?
If I wanted to create an application that would communicate between my smart phone, mac, work computer and other devices, what coding language and internet technology would I want to learn first? I know there are a lot of apps out there that do this kind of thing but I think I could do better (with the right team of developers of course).I'm thinking I'll have to learn and understand Apache, DNS, TCP/IP, and router programing. How to SSH, FTP (FTP I've done plenty) to a server. Learn PERL, Python, PHP and some database stuff like SQL/MySQL. Also and probably most importantly encryption and security technology.
I know this is a loaded question but I figured YA is a good place to get the ball rolling before I hit up a public discussion forum somewhere.
Thanks
Question #16:
Is html is essential to learn for php beginner?
I am beginner & keen to learn php.Tell me the right way how should I start from basics & what programs are essential to learn for it?Question #17:
Where's the best place in either London or NYC to learn to program in Ruby or PHP?
I'd like to learn to program in either Ruby (and eventually Rails) or PHP. I can already code a little bit in PHP, but I want to be able to program well enough to get a paying job in the industry. I don't think I have the qualifications for that yet and it's rather hard to discipline myself to take on harder and harder tasks if I don't exactly know how to tackle certain programming issues (not everyone cares to answer on IRC and Google isn't always my friend).What's the best place in either London or NYC to take programming classes in either Ruby or PHP? The language isn't as important to me as much as how many job requests there are for either language.
Thanks!
Question #18:
Censoring the internet? ):<?
Does anyone have any information on to what exactly is going to be censored?... Can I still be eligible to create websites in a variety of different languages such as php, javascript etc. and upload it to be public in the world wide web, can I still learn to program in c++, java, c# etc? Will censoring the internet effect any of those? If anyone has the slightest clue on to what exactly is going to be censored that will be helpful.... and also when is this going to happen... >:(Question #19:
All colour on Photoshop Elements 9 is tinted yellow?
Here is a picture of what is wrong:Click Here
Can anyone help me? I can't use this program to draw if it's all tinted yellow!
Question #20:
Code in Visual Basic 6.0 about Parking Fee?
A parking garage charges a Php40.00 minimum fee to park up to 3hours. Garage charges an additional Php10.00 for each hour or part. therefore in excess of 3hours. Maximum charge for any car parked is Php.150.00. Write a program that assist the owner of garage in business.Please help me. Thanks!
Btw, this is not an assignment.
I really wanted to figure this out.
I've seen parking fee calculator VB discussions.
& all I just wanted is a SIMPLE application.
THANKS! :(
Sir, just an user input.
** Powered by Yahoo Answers