ranjuvs
-
Posts
135 -
Joined
-
Last visited
Never
Posts posted by ranjuvs
-
-
$total = number_format($total,2);
-
use number_format function
-
First of all $details['txtname'] have no value in the first page. If you really want to keep in session what you typed in the test box then you have to post the values and then set the session variable with the posted value otherwise if you want to display $details['txtname'] value and bring the same to 2nd page then do as follows
<?php session_start(); $details['txtname'] = 'test'; $_SESSION['txtname'] = $details['txtname']; ?> <input type="text" name="txtname" value="<?=$details['txtname']?>" size="45"> </td>
in the second page
<?php session_start(); ?> <p><b>Name:</b> <?= $_SESSION['txtname']?></p>
-
can you post here your code again?
-
In the first page set the value to session
session_start(); $_SESSION['txtname'] = $details['txtname'];
In the second page do like this
session_start(); <p><b>Name:</b> <?= $_SESSION['txtname']?></p>
-
Try this
<?php $i=0; $multi_winner[$i] = 'test'; foreach ($multi_winner as $value2) { echo "<br>multipler_winner: ". $value2; } ?>
-
?>
^ that
is what you want to look for
yes
plus this too
<link href="CSS/style.css" rel="stylesheet" type="text/css">
-
If see your source
<title>THAC0 (To Hit Armor Class Zero)</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body bgcolor="#000000" text="#cccccc">?> <link href="CSS/style.css" rel="stylesheet" type="text/css"> <div> <link href="../CSS/style.css" rel="stylesheet" type="text/css"> <div align="center">
there are some additional lines that is getting attached
?> <link href="CSS/style.css" rel="stylesheet" type="text/css">
kindly check where it is coming from
-
yes it is secured
-
For posting to another page r u storing the password in the hidden field. If that is the case then it is not secure.
-
My guess is that it should be
<tr>
<td><p>Select Content</p></td>
<td>
<select name="content1">
<?php list_content(); ?>
</select>
</td>
</tr>
-
After posting the variable $vehicleid will get reset. Your form should have a hidden filed that stores the vehicleid and then get that variable using
$vehicleid = form($_POST['vehicleid ']);
-
You haven't set the $vehicleid variable...
-
missing '$' sign
setcookie($TestCookie[txt_user_name], $txt_user_name, time() + 3600); setcookie($TestCookie[txt_user_password], $txt_user_password, time() + 3600); and setcookie($TestCookie[txt_user_name],"", $time - 3600); setcookie($TestCookie[txt_user_password],"", $time - 3600);
-
try this. TestCookie[txt_user_name] is a variable right?
etcookie(TestCookie[txt_user_name], $txt_user_name, time() + 3600); setcookie(TestCookie[txt_user_password], $txt_user_password, time() + 3600); [code] [code] setcookie(TestCookie[txt_user_name],"", $time - 3600); setcookie(TestCookie[txt_user_password],"", $time - 3600); [code]
[/code][/code][/code]
-
it should be
setcookie("TestCookie[txt_user_name]","", $time - 3600); setcookie("TestCookie[txt_user_password]","", $time - 3600);
-
The field should be of type date then only it will work.
-
Use sessions. Keep a session variable to store the language. Keep different folders for each language. Like for english say folder named 'en' and for spanish 'es'. Keep the file names same and depending on the language session variable change the folder.
Regards
Ranju
-
have u included the class file and instantiated the object?
Regards
Ranju
-
{literla} tags is typically used around Javascript or stylesheet blocks not around html code.
-
$alphabets = array(1=>'a',2=>'b',3=>'c',4=>'d');
//as you need to print 5 z's at last -> loop the fisrt loop for 5
for($outer = 1;$outer <= 5;$outer++) {
foreach($alphabets as $alpha) {
for($i=1;$i<=$outer;$i++)
print $alpha;
print "\n";
}
}
-
A single quote is missing in your query after $itemn.
$query = " INSERT INTO items (itemn, realm) ". " VALUES ('$itemn, '$realm')";
try using
$query = " INSERT INTO items (itemn, realm) ". " VALUES ('$itemn', '$realm')";
-
To help, you need to post the else part in the Quiz.php file.
Regards
Ranju
-
Check whether the file named '1' is present in the directory.
Regards
Ranju
Help with Array Query
in PHP Coding Help
Posted
My understanding is that the array will be stored as a string. so you could use normal search query using "like" to search for a particular text.