Forums

Submit button only refresh the page

ragoz 21 Sep, 2010
Hi!

Yesterday I maked a form and it worked well. After submit I got the debug results, emails (CC too). Today I would insert an image instead of the Submit button, but it didn't worked.
<input type="image" src="images/stories/blabla.jpg alt="Submit">
Tried to add value="submit" tag but nothing. Np, opened the form with wizard edit and save, so I got back the original Submit button, but the form didn't work. The submit button only refresh the page.
I deleted the form, create a new one, but the result the same: refresh, but nothing else. No debug results, no emails...
What should be the problem? This is a great component and I would use it....

This is the end of the code:
<div class="form_item">
  <div class="form_element cf_captcha">
    <label class="cf_label" style="width: 150px;">Érvényesítés</label>
    <span>{imageverification}</span> 
    
    </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_button">
    <input value="Küldés" name="button_10" type="submit" />
  </div>
  <div class="cfclear"> </div>
</div>


Thank you for your help and for the component too! Can check form at http://teszt.terkoves.hu/terburkolatkonnyen or by choosing the 'form' in menu.
GreyHead 24 Sep, 2010
Hi ragoz,

I can see a quote " missing after .jpg; this will break all your code.

Bob
ragoz 26 Sep, 2010
Dear GreyHead,

Thank you for you reply, the quote is really missing from this post, but I think the quotes were there in my html code on the site. But this is not the main problem.

...Np, opened the form with wizard edit and save, so I got back the original Submit button, but the form didn't work. The submit button only refresh the page...


This is my misery.
I returned to the original code, like you see in my prev. post, but it doesn't works.
<div class="form_item">
  <div class="form_element cf_button">
    <input value="Küldés" name="button_10" type="submit" />
  </div>
  <div class="cfclear"> </div>
</div>


I created a brand new form, but it doesn't work.

Do you have any idea, what did I wrong?

Thank you for your help!
GreyHead 26 Sep, 2010
Hi ragoz,

Your form has no action (no URL to submit to)
<form action="" enctype="multipart/form-data" method="post" id="ChronoContact_ar_osszehasonlitas" name="ChronoContact_ar_osszehasonlitas">

Please check that the OnSubmit URL box in the Form General tab is completely empty.
Bob
ragoz 26 Sep, 2010
The OnSubmit URL box is empty.
GreyHead 26 Sep, 2010
Hi ragoz,

. . . and now it's working OK !?

Bob
ragoz 26 Sep, 2010
Hello!

The form didn't work. I have reinstalled the component and the plugin and everything is fine now.lightbulb
Now I would try to change the Submit button to an image.

If I change the

<input value="Küldés" name="button_11" type="submit" />


to

<input type="image" src="images/stories/blabla.jpg" alt="Submit">


will it work? Is this code right?

Thanks!

ps: the form works perfect with Ajacoom component like subscription form!!!
GreyHead 27 Sep, 2010
Hi ragoz,

That should work OK - thre are no special requirements for ChronoForms.

Bob
This topic is locked and no more replies can be posted.