I am using an include to go to different PHP scripts. All of them open into a new page except for one. I can't for the life of me figure out why this one insists on appending the script to the previous script. Here is my code for the switch script:
switch($submitter)
{
case "Shop Some...
I realize that PHP uses an interpreter rather then a compiler so that it makes just one pass. But does it process the HTML before the PHP code? It doesn't seem to do just a top down kind of processing by processing all the code in the order it was written.
I want to be able to take a different action with one submit button depending on circumstances. So I'm trying to use the following statement.
If ($ErrFlag) {
echo "<BR>this should be customer";
echo "<form NAME=\"errform\" ACTION=\"customer.php\">";
}
else {
echo "<BR>this should be...
My ecommerce site is in PHP and it's working fine. I'm going to use a Quick SSL and I understand it all. But I still have one problem.
My client wants the credit card# and all the info emailed to them and they will do the transaction from their office. I can't figure out how to email the info...
I'm using an input tag for a checkbox. If someone checks the box, I want the value put into a session variable. My input box is as follows:
echo "<input type = \"checkbox\" name = \"$deleteitem\" value=1 >";
I want to put it in the session array...
I was working on a script yesterday, when all of a sudden I had problems with a script I hadn't changed in days. I begin displaying categories and that works fine. Then when I go to display the details, I get the following message: Warning: mysql_result(): supplied argument is not a valid MySQL...
I have 2 questions:
1 - How do I display multiple submit buttons. The only way I've figured out to do it is with 3 different forms since the action of 2 of the buttons take you to other scripts, the third updates the current one. Is there a cleaner way to do it?
2 - How do I capture data...
Does anyone know where I can get a standalone copy of MySQLadmin.exe I have Apache, MySQL and PHP as part of a bundle but it didn't include MySQLadmin. I don't really want to install a full blown copy of MySQL just for this one utility.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.