http://php.flashwebhost.com/austin/day10.php
<?php
if(isset($_COOKIE['name'])) {
echo 'Hello '.$_COOKIE['name'].' welcome to my world';
exit; }
if (isset($_POST['name'])) {
...
Type: Posts; User: Austinwhite
http://php.flashwebhost.com/austin/day10.php
<?php
if(isset($_COOKIE['name'])) {
echo 'Hello '.$_COOKIE['name'].' welcome to my world';
exit; }
if (isset($_POST['name'])) {
...
there is something wrong with the cookie thing.
i read about it and understood it should be first thing to do in a code.
is there something like that?
if why is it like that? why cant we print...
http://php.flashwebhost.com/austin/day9.php
<html>
<body>
<?php
if(isset($_POST['secretNumber'])) {
$secretNumber = $_POST['secretNumber']; }
else {
$secretNumber = rand(10,100); }
so in this code the value of the secret number is echoed where??
i mean... this code is the one to print the value of SecretNumber so does it print the value in the server memory or something? :P
what does this code do?
<input type="hidden" name="secretNumber" value="<?php echo $secretNumber; ?>">
and i didnt understand how this works.
and also why is the action left blank? shouldnt...
Ohh... i thought name too is a variable.
like the name was a temp variable for input and then it is stored to another variable.
Got the mistake. thx
This one working.... i copy pasted that input codes and the $_GET code.
still help me find the error in the previous code
php.flashwebhost.com/austin/day7exp.php
<?php
if...
http://php.flashwebhost.com/austin/day7.php
I need help with this code!!!
mine not working properly
<?php
if(isset($_GET['name'])){
echo 'i got the name';
echo 'Hi '.$_GET['name'].' Whats...
http://php.flashwebhost.com/austin/array2.php
<?php
$stnds = array();
$std1 = array();
$std1['name'] = 'CHRIS';
$std1['age'] = 9;
$std1['mark'] = 87;
$std1['place'] = 'ARTHUNKAL';
php.flashwebhost.com/austin/array.php
<?php
$ar= array('christmas','holy','onam','easter');
$ar[1] = 'whale';
$ar[]= 'kills';
foreach($ar as $a ){
echo $a. '<br>';
http://php.flashwebhost.com/austin/day4.php
<?php$animal = 'tiger';
$color = 'green';
if($animal == 'frog'){
if($color=='green'){
i used ur code and found no error even when i used == in line 3.
and
if ($day="Sunday") is a wrong code. bez in this you are give $day the value "Sunday",and in this case the if-statement will...
Stefin thats a great job for a beginner. You really got some talent!
And you are learning real fast. Never miss a chapter. and google php to learn extra!
<?php$company='bizhat';
$sent=' HEY buddy how are you doing';
echo 'hey '.ucwords($company.' is cooler ').strtolower('THAN ANYTHING.').strtolower(str_replace('buddy', 'man', $sent));
echo...
<?php
$company='bizhat';
$sent=' HEY buddy how are you doing';
echo 'hey '.ucwords($company.' is cooler THAN ANYTHING.'). strtolower(str_replace('buddy', 'man', $sent));
echo...
In this code ?> is not necessary. ?> is used only when php is used in between other language codes.
<?php
$name= 'crazyfrog';
$action = ' is coming to town.';
$n1 = 8;
$n2=9;
echo $name.$action;
echo '<br>';
echo '8 + 9 = ' . ($n1+$n2);
your code is working and error free. I also got a suggestion that it could be reduced too.
i have modified your code in here:
<?php
$staffName = 'Ramesh';
$companyName = 'HOSTONNET';
Use a concat operator after $companyname and also put the <br> in quotes ($companyname.'<br>'; )
<?php$companyname = 'Relience';
echo $companyname.'<br>';
$companyname = 'Whirpool';
echo...
<?php
echo 'Ranan\'s new production - Andhar Nogori Choupot Raja';