Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hey Rubycat,
Form Tools doesn't care how the information is sent - replacing a submitt button with an image button really won't make a difference. Was the form not getting submitted or something? If so, there's a problem with the submit button or form itself. That said, what you posted is fine... was it placed inside the <form> </form> tags?
Also, try temporarily removing any JS. Maybe that's preventing the form from submitting...
Odd!
- Ben
Posts: 6
Threads: 3
Joined: Jul 2009
Reputation:
0
Odd indeed! But here's the thing...it works with the input type=image when using the regular old process.php. But I swear, it doesn't submit when using the API. It simply reloads the page and empties out all the fields.
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hmm.. one possibility that is that maybe when you use an image as your submit button, the name-value pair of that image button isn't sent along with the POST request. Try this: you know where you specify the name value of the submit button in the PHP? This bit:
PHP Code:
<?php
$params = array(
"submit_button" => "submit_button_name_attribute",
"next_page" => "thanks.php",
"form_data" => $_POST
);
Change "submit_button_name_attribute" to the name attribute of ANOTHER field in your form - any textbox should be fine. If you don't have one, create a hidden field and use the name attribute of that.
Let me know if this helps at all... I'm curious to know if this was the problem!
- Ben