A
A
a3x2012-09-27 14:19:11
PHP
a3x, 2012-09-27 14:19:11

How to replace RedirectToURL?

Good afternoon!

Can you please tell me how to replace RedirectToURL so that after submitting the form without reloading the current window, a small pop-up block with text is shown?

Please suggest keywords to search.

if(isset($_POST['submitted']))<br>
{<br>
   if($formproc->ProcessForm())<br>
   {<br>
        $formproc-><b>RedirectToURL</b>("thank-you.php");<br>
   }<br>
}<br>


PS. I am not an expert in either PHP or js \ jquery - I just need to make one minimal edit to a simple site.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evengard, 2012-09-27
@a3x

Well, you really need to remake it seriously, I want to tell you. Read about AJAX, www.javascript-coder.com/html-form/form-validation.phtml (about Triggering the validations when custom submitting the form) and change the logic of the PHP file so that it returns JSON for example when requested. I would do custom GET parameter handling for things like this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question