Announcements | Last Post | |
---|---|---|
SoC Curricula | 09/30/2017 01:08PM | |
Demarcation or scoping of examinations and assessment | 02/13/2017 07:59AM | |
School of Computing Short Learning Programmes | 11/24/2014 08:37AM | |
Unisa contact information | 07/28/2011 01:28PM |
Text book Chapter 5 September 05, 2013 10:34AM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Re: Text book Chapter 5 September 05, 2013 12:39PM |
Registered: 11 years ago Posts: 167 Rating: 0 |
Re: Text book Chapter 5 September 05, 2013 01:11PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: Text book Chapter 5 September 05, 2013 02:53PM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Re: Text book Chapter 5 September 05, 2013 03:17PM |
Registered: 11 years ago Posts: 167 Rating: 0 |
Language: PHPif(isset($_POST[';submit';])){ $btnClick = ($_POST[';submit';]); switch($btnClick){ case "Logout": << Logout is the name of the value button break; case "Check Form": <<Check Form is the name of the value button break; case "Register": <<Register is the value of the submit button break;
Language: HTML<input type="submit" name="submit" value="Register" tabindex="21" > <input type="submit" name="submit" value="Check Form" tabindex="20"> <input type="submit" name="submit" value="Clear" tabindex="19">
Re: Text book Chapter 5 September 05, 2013 03:22PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: Text book Chapter 5 September 05, 2013 03:26PM |
Registered: 11 years ago Posts: 167 Rating: 0 |
Re: Text book Chapter 5 September 06, 2013 07:12PM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Re: Text book Chapter 5 September 07, 2013 09:39AM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Re: Text book Chapter 5 September 09, 2013 01:35PM |
Registered: 11 years ago Posts: 36 Rating: 0 |
Language: PHP<html> <head> <title>Say my Name</title> </head> <body> <?php echo "Hello " .$_POST[';Name';]; ?> <pre> DEBUG: <?PHP print_r ($_POST); ?> </PRE> </BODY> </HTML> it says the error is in line 7, which is "echo "Hello" .$_POST[';Name';];" I am not sure what I am doing wrong, I am so frustrated, as this is the start of the chapter and already I am having problems to let this work. Any help will be much appreciated. Thanks Zelda
Re: Text book Chapter 5 September 09, 2013 04:09PM |
Registered: 10 years ago Posts: 17 Rating: 0 |
Re: Text book Chapter 5 September 09, 2013 04:23PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: Text book Chapter 5 September 09, 2013 04:50PM |
Registered: 11 years ago Posts: 167 Rating: 0 |
Language: PHP> <html> > <head> > <title>Say my Name</title> > </head> > <body> > <?php > echo "Hello " .$_POST[';Name';]; > ?> > <pre> > DEBUG: > <?PHP > print_r ($_POST); > ?> > </PRE> > </BODY> > </HTML> > > it says the error is in line 7, which is "echo > "Hello" .$_POST[';Name';];" > I am not sure what I am doing wrong, I am so > frustrated, as this is the start of the chapter > and already I am having problems to let this > work. > > Any help will be much appreciated. > > Thanks > > Zelda > > >
Re: Text book Chapter 5 September 10, 2013 01:58AM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Re: Text book Chapter 5 September 10, 2013 07:24AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: Text book Chapter 5 September 10, 2013 10:49AM |
Registered: 11 years ago Posts: 36 Rating: 0 |
Re: Text book Chapter 5 September 10, 2013 08:36PM |
Registered: 11 years ago Posts: 36 Rating: 0 |
Language: PHP<html> <head> <title>Say my Name</title> Style type="text/css"> TD{COLOR:#353535;FONT-FAMILY:VERDANA} TD{COLOR:#FFFFFF;FONT-FAMILY:VERDANA;BACKGROUND-COLOR:#336699} </style> </head> <body> <form action="formprocess1.php" method="POST"> <table border="0" cellspacing="1" cellpadding="3" bgcolor="#353535" align="center"> <tr> <td bgcolor = "#FFFFFF" width = "50%"> Name</td> <td bgcolor="#FFFFFF" width= "50%"> <input type="text" name="Name"><br> </td> </tr> <tr> <td bgcolor ="#FFFFFF" colspan ="2" align="center"> <input type="submit" name="SUBMIT" VALUE="Submit"> </td> </tr> </table> </form> </body> </html>
Language: PHP<html> <head> <title>Say my Name</title> </head> <body> <?php if(isset($_POST[';Name';])){ $notify = $_POST[';Name';]; } echo "Hello " . $_POST[';Name';]; ?> <pre> DEBUG : <?PHP print_r ($_POST); ?> </PRE> </BODY> </HTML>
Re: Text book Chapter 5 September 10, 2013 09:16PM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Language: PHP<?php if(isset($_POST[';Name';])){ $notify = $_POST[';Name';]; } echo "Hello " . $_POST[';Name';]; // this is not set! echo "Hello " . $notify; //$notify is set ?>!
Re: Text book Chapter 5 September 11, 2013 09:13AM |
Registered: 11 years ago Posts: 36 Rating: 0 |
Re: Text book Chapter 5 September 11, 2013 09:19AM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: Text book Chapter 5 September 11, 2013 10:00AM |
Registered: 11 years ago Posts: 36 Rating: 0 |
Re: Text book Chapter 5 September 11, 2013 11:13AM |
Registered: 11 years ago Posts: 36 Rating: 0 |
Re: Text book Chapter 5 September 11, 2013 11:13AM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Re: Text book Chapter 5 September 11, 2013 11:20AM |
Registered: 11 years ago Posts: 36 Rating: 0 |
Re: Text book Chapter 5 September 11, 2013 11:21AM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Re: Text book Chapter 5 September 11, 2013 11:29AM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: Text book Chapter 5 September 11, 2013 11:37AM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: Text book Chapter 5 September 11, 2013 12:19PM |
Registered: 11 years ago Posts: 36 Rating: 0 |
Re: Text book Chapter 5 September 11, 2013 12:53PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: Text book Chapter 5 September 11, 2013 03:18PM |
Registered: 11 years ago Posts: 36 Rating: 0 |
Re: Text book Chapter 5 September 11, 2013 03:46PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: Text book Chapter 5 September 11, 2013 03:54PM |
Registered: 11 years ago Posts: 36 Rating: 0 |
Re: Text book Chapter 5 September 11, 2013 06:00PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: Text book Chapter 5 September 11, 2013 07:38PM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Re: Text book Chapter 5 September 11, 2013 07:54PM |
Registered: 11 years ago Posts: 36 Rating: 0 |
Re: Text book Chapter 5 September 11, 2013 08:15PM |
Registered: 11 years ago Posts: 36 Rating: 0 |
Re: Text book Chapter 5 September 12, 2013 08:17AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Language: PHP> <?php > if(isset($_POST[';Name';])) > { $notify = $_POST[';Name';]; } <<<<< This closing > bracket should be at the end. > echo "Hello " . $_POST[';Name';]; // this is not > set! > echo "Hello " . $notify; //$notify is set > } <<<<< Put bracket here > ?>! >
Re: Text book Chapter 5 September 16, 2013 01:09PM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Language: PHP<html> <head> <title>Add/Search Entry</title> <?php if(isset($_POST[';Name';])) { $notify = $_POST[';Name';]; } else{ $notify=""; } ?> <style type="text/css"> TD{color:#353535;font-family:verdana} TH{color:#FFFFFF;font-family:verdana;background-color:#336699} </style> </head> <body> <form action="form1.php" method="post"> <table border="0" cellspacing="1" cellpadding="3" bgcolor="#353535" align="center"> <tr> <td bgcolor="#FFFFFF" width="50%">Name</td> <td bgcolor="#FFFFFF" width="50%"> <input type="text" name="Name"> </td> </tr> <tr> <td bgcolor="#FFFFFF" colspan="2" align="center"> <input type="submit" NAME="SUBMIT" value="Submit"> </td> </tr> </table> <?php echo "Hello " . $notify; ?> <pre> DEBUG : <?php print_r($_POST); ?> </form> </body> </html>
Re: Text book Chapter 5 September 16, 2013 04:05PM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: Text book Chapter 5 September 16, 2013 04:53PM |
Registered: 11 years ago Posts: 167 Rating: 0 |
Language: PHP> <html> > <head> > <title>Add/Search Entry</title> > <?php > if(isset($_POST[';Name';])) > { $notify = $_POST[';Name';]; > } > else{ > $notify=""; > } > ?> > > <style type="text/css"> > TD{color:#353535;font-family:verdana} > TH{color:#FFFFFF;font-family:verdana;background-co > lor:#336699} > </style> > </head> > <body> > <form action="form1.php" method="post"> > <table border="0" cellspacing="1" cellpadding="3" > bgcolor="#353535" align="center"> > <tr> > <td bgcolor="#FFFFFF" width="50%">Name</td> > <td bgcolor="#FFFFFF" width="50%"> > <input type="text" name="Name"> > </td> > </tr> > <tr> > <td bgcolor="#FFFFFF" colspan="2" > align="center"> > <input type="submit" NAME="SUBMIT" > value="Submit"> > </td> > </tr> > </table> > <?php > echo "Hello " . $notify; > ?> > <pre> > DEBUG : > <?php > print_r($_POST); > ?> > > </form> > </body> > </html> >
Re: Text book Chapter 5 September 16, 2013 06:57PM |
Registered: 11 years ago Posts: 123 Rating: 0 |