-
Posts
1,041 -
Joined
-
Last visited
-
Days Won
17
Everything posted by gw1500se
-
GET form being posted to "index.php" every time / not doing what expected
gw1500se replied to oz11's topic in PHP Coding Help
You need to change the $_GET index to what you want. E.G. if (isset($_GET["poststring"} { -
You are trying yo use GET method but specifying POST. Use this: <form action="add-sig.php?id=<?=$contact['id']?>" method="get">
-
Parse error: syntax error, unexpected '$age' (T_VARIABLE)
gw1500se replied to conqueror's topic in PHP Coding Help
Semicolons are still missing. In addition, don't use * in your query. Specify only those column you expect to use. -
I think you want: ssl_version=$_SERVER(SSL_PROTOCOL);
-
This should be a simple query update. What have you tried and what doesn't work as expected? Please show the code you tried (be sure to use the code icon (<>) at the top of the menu and specify PHP for your code) along with any errors or any difference between what you get and what you expect.
-
First please use the code icon (<>) at the top of the menu for your code and select PHP. It is not clear what you are asking. If you want the records whether of not they have the word then why is that phrase in the query? If I understand, you can check the resulting records for the word in the subject and if missing, output a zero.
-
"ldap_get_entries" não retorna 1 dos atributos
gw1500se replied to pedro456789's topic in PHP Coding Help
Este es un foro en inglés. -
Do the validation with JavaScript and if OK then submit the form. Keep in mind that PHP is stateless and server side only. Once PHP outputs the page, it forgets everything and the next submit is new as far as PHP is concerned. You should re-validate with PHP in case hackers are trying to penetrate your server, in which case simply output an error page. It is more user friendly to validate with JavaScript so the user does not have to wait on the server.
-
Did you echo $original_name to make sure it contains what you expect (you didn't show how you built it)? Do you have errors turned on? error_reporting(E_All)
-
Did you print $ballInformation just before the execute to make sure it contains what you think?
-
So what is your question or error message?
-
Sending an email when expiry date is in 1 month
gw1500se replied to coatse's topic in PHP Coding Help
First of all you have way too many unnecessary <?PHP and ?>. You have retrieved your data from the database but never use that result anywhere. All you need to do is create a string formatted with the data so it says what you want and put it in the body. Am I missing something? P.S. Don't use '*' in your select query. Specify only those columns you will actually use. -
Show your new code.
-
How to pre fill an array with missings keys?
gw1500se replied to beginnerForPHP's topic in PHP Coding Help
Looks like you already did that. Perhaps you need to better explain what you are trying to do and post some actual code. Also, when you post code use the code icon (<>) in the top menu and specify PHP. -
Kindly post some code. Be sure to use the code icon (<>) in the top menu and specify PHP.
-
As you can see $_POST does not contain what you expect. Now you have to figure out why.
-
Looks like $_POST does not contain what you think. Before the 'if' block use this: echo "<pre>"; print_r($_POST); echo "</pre>";
-
What have your tried? Post the code here (use the code icon(<>) in the top menu and specify PHP. If you don't know where to start read this.
-
That is a different question from what you originally asked about downloading a file. Whether or not your microcontroller is hacakble is independent of downloading an update. Assuming, of course, that you can trust the download site. Whether or not is can be hacked depends on how well you secure the microcontroller in general. Since you mentioned Python, is it running Raspbian?
-
What kind of attacks? Based on what you posted I am guessing you mean man-in-the-middle attacks. Once it is on either machine it is a different security issue.
-
You need to post your code here not make people go to a 3rd part web site. Also if you suspect the problem is in Javascript then post in the Javascript forum. When you do post use the code icon (<>) in the top menu for your code and select the appropriate code type.
-
how to insert auto current date inside this tag please help?
gw1500se replied to Ronel's topic in PHP Coding Help
Depends on what format you want but for mm/dd/yyyy use: <?php echo "<td colspan=\"2\"><input type=\"date\" name=\"date_encode\" style=\"width:100%\" value=\"".date("m/d/Y")."\" /></td>"; ?>