Hi. I think the problem is in register_global s option. Try this:
[php]
if ($_REQUEST['back'] == "Back") {
header("Locatio n:a_user_outlin e.php");
}
<td align="center"> <input type="submit" name="back" value="back" size="40" ?>">[/php]
And note that string "Back" is not equal to "back".
User Profile
Collapse
-
-
/tmp/phpJCyUQl is a temporary name for uploaded file. You have to copy() it to other place.
Read this:
http://php.net/manual/en/features.file-upload.phpLeave a comment:
-
It is not stupud. Consider following examples:
[PHP]<?php
$ttt = "\"some text\"";
?>
<input type="text" value="<?php print $ttt;?>" />[/PHP]
We can see nothing in the input field in the browser (but not in the source).
And this:
[PHP]<?php
$ttt = "\"some text\"";
?>
<input type="text"...Leave a comment:
-
-
Still haven't clear understanding of existing problem. Maybe you should use static objects if you want to have only one instance of class?
Are you sure your solution isn't reinventing of wheel?Leave a comment:
-
satas replied to Warning: session_start() [function.session-start]: Cannot send session cookie - headein PHPHi sanjusb. Delete following line from your script.
[PHP]// Using PHP5 version[/PHP]
P.S. Dont forget to use [code] tags next time you post question.Leave a comment:
-
It is impossible in the way you have describe it.
You should pass instance name manually, something like that :
[PHP]class x {
private $instanceName;
public function __construct($in stanceName) {
this->instanceName = $instanceName;
}
}
$santas_red_und erpants = new x('santas_red_u nderpants');[/PHP]
Anyway, why do you need to know instance name? Explain your...Leave a comment:
-
This variant is also possible:
[PHP]$_float = 1.9020441123;
print strcspn(strrev( $_float), '.');[/PHP]
Regards.Leave a comment:
-
Unfortunateli i have not experience using ZendFramework.
In my opinion all php frameworks more or less similar to each other.Because all of them are implement MVC model.
May i ask you which of them you have used?Leave a comment:
-
It seems that variables $title, $path and $filename have not been initialized.Leave a comment:
-
Or you can use JavaScript to change action attribute without reloading page....Leave a comment:
-
Check session_save_pa th in your php.ini file. Make sure it has real path with write permissions....Leave a comment:
-
Leave a comment:
-
I don't understand why you want users to enter order numbers.
Why do they need to enter it while it can be calculated by the one sql query?
I've just tested a query from my pervious post on the table with 100 000+ records. It takes 0.0280 seconds....Leave a comment:
-
In my opinion following query should not takes a lot of database resources:
Code:SELECT MAX(num) FROM table
Leave a comment:
-
Have a look to singleton pattern in PHP.
It is exactly what you need. The main idea it that you don't need to create an instance of dbConnection class every time you use it. It can be done via static variables&funct ions. Try google for it.Leave a comment:
-
-
By default, browser should automatically send form data by pressing enter key (if the element has focus).
Anyway this question is not related to PHP....Leave a comment:
-
Use system() function:
[PHP]<?php system("uptime" ); ?>
<b>System Information:</b>
<?php system("uname -a"); ?>
<b>Memory Usage (MB):</b>
<?php system("free -m"); ?>
<b>Disk Usage:</b>
<?php system("df -h"); ?>
[/PHP]
From : http://www.w...Leave a comment:
No activity results to display
Show More
Leave a comment: