Skip to content
Advertisement

Tag: html

Submitting an HTML form to a PHP file with JS validation

I’m sending data via an HTML form to a PHP file for it to be inserted into a DB with SQL script, The same form is validated with JavaScript functions. Each of the two works as expected separately, but when used together – <form method=”POST” action=”myPHPFile.php” onsubmit=”validationFunc(event)”> – only the validation function works, and the page doesn’t get redirected to

How to render Html with smarty

I’m trying to render my raw HTML with smarty. The original text contains spaces and text returns, but when displayed, HTML is shown as plain text. Also, I tried to add {$brand.description|strip_tags:’UTF-8′} as a filter for my string. But it’s only deleting my HTML. How can my smarty template render this string as pure HTML? Answer Answer is… Also, you

Advertisement