The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Submit input type - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17)
+--- Thread: Submit input type (/showthread.php?tid=211)



Submit input type - rubycat - Jul 12th, 2009

If I wanted to use an image as the form "submit" button, what would I have to change to make Form Tools 2 still work?

I tried for 2 hours to do the test submission and not until I changed my code to a regular old input type=submit would it work.

Non-working HTML:
Code:
<input type="image" name="send" src="poo.gif" alt="here it is" />



RE: Submit input type - Ben - Jul 12th, 2009

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


RE: Submit input type - rubycat - Jul 12th, 2009

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.


RE: Submit input type - Ben - Jul 18th, 2009

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:
$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