Re: Display specific html tag on specific pages Programming Web Development by ianhaneybs Thank you so much for the code Dani, that does look a lot cleaner and better than what I have Re: Calling an object from another in PHP using construct Programming Web Development by pritaeas … described by jkon. I'd go for a container class: ```php class Container { private $A; private $B; private $C; public function…://www.daniweb.com/programming/web-development/tutorials/437592/introduction-to-php-s-object-orientation Re: Calling an object from another in PHP using construct Programming Web Development by FarrisFahad … need to know now. I am new to OOP in PHP. Is it good to call a class within a class… Display specific html tag on specific pages Programming Web Development by ianhaneybs … want to display different html tags on the php page they are visiting, for example on the… into that code, the homepage is called index.php <?php if ($_SERVER["SCRIPT_NAME"] == '/computer-shop…-basildon.php') { echo '<section class="testimonal-two … Re: Display specific html tag on specific pages Programming Web Development by ianhaneybs …$_SERVER['REQUEST_URI']; if($currentpage=="/" || $currentpage=="/index.php" || $currentpage=="/index" || $currentpage==""…; || $currentpage=="/computer-shop-basildon.php" || $currentpage=="/computer-shop-basildon" ) {… Re: Display specific html tag on specific pages Programming Web Development by Dani … so it doesn't look so messy: <?php // Retrieve the current page $currentpage = $_SERVER['… Array of pages $array = array( '/', '/index.php', '/index', '', '/computer-shop-basildon.php', '/computer-shop-basildon' ); // If the $currentpage … Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner Today is a good day. The problem has been solved. Problem was anti-spoofing stuff being added to my email server sometime in February. The clue that was found during testing was I had by chance entered an email address ending in @(one of domains that I own), (not even a real email address) and form emailed successfully. And by changing only 1 line … Re: Online subission forms not sending emails of submitted info Programming Web Development by Dani You only need to use htmlspecialchars() if the text appears on a website or an HTML email. I’m not sure if you need it if you’re sending plaintext emails. Re: School Intranet Community Center by simhakidsden A school intranet is like a private website for students, teachers, and staff. It helps them communicate, share resources, and access important information within the school community. It's like a digital hub where everyone can connect and collaborate on school-related matters securely. Re: APIs and SDKs in a PHP project Programming Web Development by Dani In the context of PHP, an API's SDK is a PHP-based library that is used to access what is typically a JSON-based API. Composer is a dependency manager for PHP, but you typically don't *need* to use it. What API are you trying to connect to? Re: APIs and SDKs in a PHP project Programming Web Development by pritaeas > I am also using PHP procedural programming and I noticed that these SDKs use OOP. > Can someone help me make my first API call using an SDK? Do you understand OOP and can you write code using it? If so, continue to the next step. I'd advise against the other way around. Calling an object from another in PHP using construct Programming Web Development by FarrisFahad How can I include objects in each other using PHP OOP? I have 3 classes all classes make use of one another. I am trying to call them on `__construct` but it's creating an infinite calls to one another. How can I solve this? Re: Calling an object from another in PHP using construct Programming Web Development by jkon … a construction method . Lets play a bit with it in PHP: class A { private $obj; public function __construct() { $this->obj… Re: Calling an object from another in PHP using construct Programming Web Development by pritaeas Show some code of how you expect it to work. Re: Calling an object from another in PHP using construct Programming Web Development by Dani I'm not understanding your question. You can definitely create objects within the methods of other classes. As pritaeas says, please post some code so we can understand better. Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner …all, e.g. error in the 1st running PHP file). Adding the semi-colon at end of line…screen display HTML file (2nd running file after the PHP) was. So I started adding the new code …bit by bit to the original PHP file to see where it would crash. First… be difficult as using 1 & 1/Ionos PHP files. What is coding to access error logs or… Re: Online subission forms not sending emails of submitted info Programming Web Development by Biiim …; require 'includes/PHPMailer/src/Exception.php'; require 'includes/PHPMailer/src/PHPMailer.php'; require 'includes/PHPMailer/src/SMTP.php'; and the second is mine… require DNS access. EDIT2: You could also try taking the PHP out of the try - catch block to see if that… Re: Online subission forms not sending emails of submitted info Programming Web Development by Biiim … screen is something in the coding not being understood by PHP 8.2. Any insights on what could be causing the… Re: Online subission forms not sending emails of submitted info Programming Web Development by Chris_103 It seems like you're experiencing issues with PHP-based email functionality, where submissions are not triggering emails to be sent. Let's dive into the code snippet you provided and see if we can identify any potential issues or improvements. Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner … asked ? So I'm seeing if in the back end PHP file, the email address in question is not anything entered… Re: How to query database using variable and get all results not just one row Programming Web Development by Chris_103 … of fetch(). Here's how you can modify your code: ```php // Query database to retrieve records associated with the user $sql… Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner I just discovered some new information on why the online submission pages weren't sending as during some testing I discovered there was a way for the submitted info to be sent. Here it is. I have online submission pages on 4 websites: RadiantNewHorizonHomes.com, RTO-USA.net, SubterraneanSoundStudio.com and RebHellionRecords.com. Each of these 4 … Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner My 4 domains are all through URL provider IONOS. The question is why does the sender's email address as entered on the front end of the on-line submission form have to have the same ending as the domain name of the site or one of the other 3 or else submitted info fails to send ? Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner That's a problem. The email addresses issued for @RadiantNewHorizonHomes.com or 1 of the other 4 are created by me. Unknown parties that submit online forms on one of my domains would not have one of these email addresses. I would want to receive the submitted info from senders of any email address like has been since 2011 until Feb 2024. This is … Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner There is no making emails "appear" to be from other than the true sender. I'll explain further. Suppose John Smith has an email address of johnsmith@gmail.com. John then goes on to one of my sites, lets say RTO-USA.net, and fills out an online submission form and enters his email address truthfully (johnsmith@gmail.com). This email … Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner If John isn't the sender then who is ? Also, continuing from the John Smith example, if John Smith enters his email address as johnsmith@SubterraneanSoundStudio.com or johnsmith@RTO-USA.net (ficticious email addresses) then the submitted info would be emailed to me but if he uses his true email address then it would not. Continuing from this … Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner Then it seems to me that if I change $from = $_POST['ShowingEmail']; to $from = "Unknown@RTO-USA.com"; (or @SubterraneanSoundStudio.com, etc.) then the submitted info should send. This Unknown@RTO-USA.com email address is fake but apparently that doesn't matter. The only thing that matters is that the @domain.com part of the email … Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner I'll do whatever works to get the submission pages to send again with any submitter's email address. The End Justifies The Means. If it works then I can refine it as needed. Re: Online subission forms not sending emails of submitted info Programming Web Development by Dani > If this does in fact solve the problem, it would make replying back to the submitter a little bit more complicated In your mail headers, you can specify both a From: email address, that is an email address from your domain name, as well as a separate Reply-To: email address, that can be any email. This way, when someone clicks on the Reply … Re: Online subission forms not sending emails of submitted info Programming Web Development by Biiim Hey David, You should not pretend to send an email from `x@gmail.com` as this is spoofing. I forward all forms from a website from a generic email such as `forms@` or `enquiry@` (`@yourlocaldomain.com`) Emails have basic checks done on them, which is why your spoofing fails, you are trying to say `X@gmail.com` sent an email but gmail didn'…