How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask The-PC-Guy Your Own Question

The-PC-Guy
The-PC-Guy, Software Engineer
Category: Programming
Satisfied Customers: 1920
Experience:  Extensive Knowledge in PHP, MYSQL, CSS & Javascript
62934938
Type Your Programming Question Here...
The-PC-Guy is online now

Produce PHP code (and any necessary HTML) to perform the

Customer Question

Attachment: 2015-04-30_154359_webtec_week06_ha.zip

A

Produce PHP code (and any necessary HTML) to perform the following functions: 1.Using the POST function, retrieve the contents of three HTML text boxes, which should contain floating point values in the range 0.0–10.0. 2.Place the values in an array, and then use a loop to search the array and validate the input. 3.Send a message back to the browser confirming whether the input is valid.

B

Identify the errors in the PHP code provided for you in assignment6.php (Download ZIP). Correct the code and create comments explaining why the original code would not work properly. Submit the corrected file, complete with comments, as assignment6xxxx.php, where ‘xxxx’ is your name. Remember not to include spaces in file names. The file assignment6.html is provided for you so that it can work with the PHP file. The PHP script will process replies sent from an HTML form in assignment6.html. The HTML file should not contain any errors.
Submit the PHP and HTML files zipped into a single file.

Please find attachment.

Submitted: 1 year ago.
Category: Programming
Expert:  The-PC-Guy replied 1 year ago.
My Name is***** will be helping you today. If I provide good service, you may ask forCustomerin your question title for your future needs.

hi this is 2 separate qusetions.

I will do part A for you hear, but will need you to open a new question for part B.

is this ok?
Customer: replied 1 year ago.

Hello Andrew,

thanks for your response, would you be kind to answer both at once i am willing to pay more as bonus. Please I need the answer ASAP. I am already late

Thanks

R

Expert:  The-PC-Guy replied 1 year ago.
ok sending offer now
The-PC-Guy, Software Engineer
Category: Programming
Satisfied Customers: 1920
Experience: Extensive Knowledge in PHP, MYSQL, CSS & Javascript
The-PC-Guy and other Programming Specialists are ready to help you
Expert:  The-PC-Guy replied 1 year ago.
gr8, i willl get started then
Customer: replied 1 year ago.

can you be ready in next 2 hours ? I expected that you already did the first part. Pleas let me know as time is important.

Expert:  The-PC-Guy replied 1 year ago.
sure i will try
Customer: replied 1 year ago.

ok now is 11:22 I will check back at 1:22 according to this chat room timing.

Expert:  The-PC-Guy replied 1 year ago.
is there a pasword on the zip file?
Expert:  The-PC-Guy replied 1 year ago.
never mind

i got it
Customer: replied 1 year ago.

no there is no password. fyi the zip folder is for question B

Expert:  The-PC-Guy replied 1 year ago.
this is done http://ge.tt/7zS5maF2/v/0?c let me know if there are any questions
Customer: replied 1 year ago.

wow nice i am checking the output now

Customer: replied 1 year ago.

on question A i got this response below as output and for question B I recieved blank page as output. and i entered float value which was more than the range specified but no validation was there to check value consistency. please fix and let me know

i use internet explorer 11.

<?php
if (isset($_POST['submit'])) { //check if form submitted

foreach($_POST as $key => $value) { //loop through post array
if ($key != "submit") {
if ( (is_numeric($value)) and ($value >= 0.0) and ($value <= 10.0) ) { //check for validity
echo "<font color=\"green\">$key is valid</font><br>";
} else {
echo "<font color=\"red\">$key is invalid</font><br>";
} //end if
} //end if
} //end foreach
} //end if

include("index.html");
?>

Customer: replied 1 year ago.

Please respond, I will not pay if the code does not work as it should.

Customer: replied 1 year ago.
Relist: Inaccurate answer.
the codes did not produce any meaningful output
Expert:  The-PC-Guy replied 1 year ago.
it does workyou dont have php on your computer upload to a computer that has php
Expert:  The-PC-Guy replied 1 year ago.
http://csharporbflat.freeiz.com/validate.php

set up sample.

all you have to do to get it to work is upload to a webhost
Customer: replied 1 year ago.

<br />
<b>Parse error</b>: syntax error, unexpected '<' in <b>[...][...]</b> on line <b>1</b><br />

Customer: replied 1 year ago.

I tested it online and here is the error

<br />
<b>Parse error</b>: syntax error, unexpected '<' in <b>[...][...]</b> on line <b>1</b><br />

Expert:  The-PC-Guy replied 1 year ago.
how did you test it exactly?
Customer: replied 1 year ago.

I copied the php code and pasted on the link below

http://sandbox.onlinephpfunctions.com/

Expert:  The-PC-Guy replied 1 year ago.
that wont work because remeber you need the html file that goes with that. suppose I could put it in a single file if really necesary try the link i gave you http://csharporbflat.freeiz.com/validate.php
Customer: replied 1 year ago.

that was the first link I tried but it seems to be working now

Customer: replied 1 year ago.

that was the first link I tried but it seems to be working now. I will give you feedback tomorrow

Expert:  The-PC-Guy replied 1 year ago.
ok, if you need something else lemme know

What Customers are Saying:

 
 
 
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer
< Previous | Next >
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C.
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C.
 
 
 

Meet The Experts:

 
 
 
  • ATLPROG

    ATLPROG

    Computer Software Engineer

    Satisfied Customers:

    7260
    MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
< Previous | Next >
  • http://ww2.justanswer.com/uploads/SP/spatlanta2010/2011-6-23_12450_photo.64x64.gif ATLPROG's Avatar

    ATLPROG

    Computer Software Engineer

    Satisfied Customers:

    7260
    MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Computer Software Engineer

    Satisfied Customers:

    5514
    Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
  • http://ww2.justanswer.com/uploads/lifesaver333/2010-10-17_191349_ls.jpeg lifesaver's Avatar

    lifesaver

    Computer Software Engineer

    Satisfied Customers:

    936
    Several years of intensive programming and application development experience in various platforms.
  • http://ww2.justanswer.com/uploads/EH/ehabtutor/2012-8-2_202016_1.64x64.jpg ehabtutor's Avatar

    ehabtutor

    Computer Software Engineer

    Satisfied Customers:

    766
    Bachelor of computer science, 5+ years experience in software development, software company owner
  • http://ww2.justanswer.com/uploads/eljonis/2010-01-06_130406_eljon2.jpg Eljon's Avatar

    Eljon

    Consultant

    Satisfied Customers:

    558
    Founder of StockCanvas.com
  • http://ww2.justanswer.com/uploads/FA/fael/2011-1-15_104041_profile500x500.64x64.jpg Rafael Martins's Avatar

    Rafael Martins

    Computer Software Engineer

    Satisfied Customers:

    446
    Desktop, Mobile and Web Developer. 7+ years of experience. Creative solutions provider.
  • http://ww2.justanswer.com/uploads/CH/chutz747/2011-11-6_14231_me.64x64.jpg The-PC-Guy's Avatar

    The-PC-Guy

    Software Engineer

    Satisfied Customers:

    320
    Extensive Knowledge in PHP, MYSQL, CSS & Javascript