Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I have a form written in PHP. recently I found out that users can replace a with ǎ (letters with accented letters) and still login without problem, and the form can't distinguish. What is the problem?
( I've heard something about == and ===, but I'm not sure)
P.S: I'm very new to PHP!
This isn't PHP that is poorly doing the comparison:
<?php
echo ('a' == 'ǎ')?"Looks the same!":"Who you kidding?";
echo ('a' === 'ǎ')?"Looks the same!":"Who you kidding?";
?>
OUtput:
Who you kidding?
Who you kidding?
There is some additional work at play here. If the form is being submitted and then handling the information before it passes it back to the rest of your code - you need to look into it in detail. Who knows what else it is changing?
If you have the plugin on your site, you have the code already - just look into what it is doing.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I have two different web designs(Created in PHP, HTML, CSS and JavaScript) Can I upload both and just switch them from time to time?
How do I redirect so i can choose what design will show when i open my website?
Try with this code :
if(some condition here)
header('Location:design1.php');
else if(some condition here)
header('Location:design2.php');
or you can also use include function.
if(some condition here)
include("design1.php");
else if(some condition here)
include("design2.php");
Thanks.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I have some PHP that displays the users session name in the HTML and if the user is not logged in, then I would like it to display "User" instead.
Can I have an if statement in this case? I tried it myself but I got header errors.
This is what I've tried so far but each practical attempt just spits out more errors at me.
This is a different approach I have tried.
<?=$_SESSION['sess_user'] or ("User");?>!
<?php echo (isset($_SESSION['sess_user']) ? $_SESSION['sess_user'] : "User"); ?>
This will check if the session is set, if it is then echo the session, if it isn't then it will echo "User".
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I have a project in which i have to make a code in which when we click on menu bar and the option that we select in menu bar the page related to that option will display all this is to be done through my sql.Is there any way to do this task.
I don't understand exactly what you want and if there is a better way to do this, but don't put in your sql fields PHP code.
You can create a xml document instead, and use it better.PHP.net - XMLdocument
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 9 years ago.
Improve this question
How could one build a system using PHP that tracks every event that occurs? Such as when someone comments on something, likes something or changes something.
The only thing that comes to mind right now is by the use of query strings when ever one invokes a command.
Try implementing the Observer pattern.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
Help please create a form similar to a website.
How can i achieve a form like in this website www.myclean.com, i already got the first step in the form which is the slider and checkbox.
Now I need to know how to process that information and put it in the another page please try the form in this site www.myclean.com.
I can only think of php to do this get or post, do you have other ideas?
Thanks! :)
here is what I did in my slider and checkbox.
jsfiddle.net/z2zaz/9/
You can process the form in nearly any language you'd like, or you can email the results to yourself, but I'd recommend against that due to all the spam bots.
The language doesn't really matter. PHP is a fine solution, if that's what you're asking.