Skip to content
Advertisement

Tag: php

use multiple files in category.tpl with smarty

{$category->id|escape:’htmlall’:’UTF-8′} this smarty code is for get id number on category.tpl we have lot of category id’s example 2,6,8,10 etc etc and in my folder lots of files names example 2minimum.txt, 6minimum.txt, 8minimum.txt, 10minimum.txt etc etc i want to use include file when current category id page with category id number txt file. {include file=’folder/2minimum.txt’} <=- this will work perfect

WordPress JavaScript

I’m trying to achieve a custom option inside the “Publish Metabox” in WordPress admin custom post. And I want to know is there any native way to do expand/collapse divs (Check the below screenshot). I wonder how WordPress itself achieves it like the below screenshot? (Maybe match the IDs like bootstrap JS libraries do ?). Answer And I want to

How to change the me when receiving email on contact us

I’ve created an contact us form using PHP Mailer, however the problem is when I received the email the name before you open it is me and I can’t figured out how to fix it. Also I appreciate it if someone explain to me what is the different between Username and the add Address. Thank you in advance. Here is

Insert Only One Record In MYSQL database using php

i am working on a project where i want to insert only one record in a specific time. For Example: in the project client rate a contractor only once.(when the construction is in working) once he rated he cannot rate second time whatsoever. I checked online but didn’t find what i am looking for. Now I have 2 Ideas. 1-

Adding POST parameters after form submit

I have this form: And I’d like to add a few json arrays to POST in validateForm() after validation, so that when validateForm() returns true, the updated POST will be sent to course_submit.php. What’s the best wya to go about this? Thanks! Answer Have <input type=”hidden” …> elements inside the form. Assign the values to those elements.

Advertisement