Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Can someone recommend a customizable contact form, please? Reply To: Can someone recommend a customizable contact form, please?

#175549
Anonymous
Inactive

Greetings Traq,

I changed this:

return $this->_notice.str_replace( $placeholders,$replacements,$this->_htmlMarkup );

to this:

return str_replace( $placeholders,$replacements,$this->_htmlMarkup );

and added this on the same form.php after initially putting it on the wrong php:

public function htmlMarkup_userNotice(){
return ($this->_notice)?
"<p>".htmlspecialchars( $this-&gt;_notice )."</p>":
false;

I have added this to the contact page:

  <div>
 &lt;?= $contactForm-&gt;htmlMarkup( "http://www.wslmf.org/new/test/success.php" ); ?&gt;
  </div>

I am not sure I have the above correct however.

I don’t believe I am getting this in the correct place either

&lt;?= $contactForm-&gt;htmlMarkup_userNotice() ?&gt;

as the form submits, but doesn’t direct to the success.php page.

Best Regards.