Ok, not many answers, but maybe this example will help:
<?php
require_once("form_tool/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "small_x",
"next_page" => "dildopresent_meddelande.php",
"form_data" => $_POST
);
ft_api_process_form($params);
?>
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post">
<input name="small" type="image" id="small" tabindex="1" src="1_small.jpg" alt="Liten" align="left" />
<input name="medium" type="image" id="medium" tabindex="2" src="2_small.jpg" alt="Medium" align="middle" />
<input name="big" type="image" id="big" tabindex="3" src="3_small.jpg" alt="Stor" align="right" />
</form>
This will work, but only if I click the "small" image.. I can't come up with a way to make it work if I press any of the images. Any ideas?
Thanks
Solved it with javascript like this:
<?php
require_once("form_tool/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "submit_x",
"next_page" => "dildopresent_meddelande.php",
"form_data" => $_POST
);
ft_api_process_form($params);
?>
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post">
<input name="submit" type="image" src="1_small.jpg" alt="Liten dildo" align="left" onClick="javascript:document.forms[0].dildo.value = 'small';" />
<input name="submit" type="image" src="2_small.jpg" alt="Medium dildo" align="middle" onClick="javascript:document.forms[0].dildo.value = 'medium';" />
<input name="submit" type="image" src="3_small.jpg" alt="Stor dildo" align="right" onClick="javascript:document.forms[0].dildo.value = 'big';" />
<input name="dildo" type="hidden" value="" /><br />
</form>
<?php
require_once("form_tool/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "small_x",
"next_page" => "dildopresent_meddelande.php",
"form_data" => $_POST
);
ft_api_process_form($params);
?>
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post">
<input name="small" type="image" id="small" tabindex="1" src="1_small.jpg" alt="Liten" align="left" />
<input name="medium" type="image" id="medium" tabindex="2" src="2_small.jpg" alt="Medium" align="middle" />
<input name="big" type="image" id="big" tabindex="3" src="3_small.jpg" alt="Stor" align="right" />
</form>
This will work, but only if I click the "small" image.. I can't come up with a way to make it work if I press any of the images. Any ideas?
Thanks
Solved it with javascript like this:
<?php
require_once("form_tool/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "submit_x",
"next_page" => "dildopresent_meddelande.php",
"form_data" => $_POST
);
ft_api_process_form($params);
?>
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post">
<input name="submit" type="image" src="1_small.jpg" alt="Liten dildo" align="left" onClick="javascript:document.forms[0].dildo.value = 'small';" />
<input name="submit" type="image" src="2_small.jpg" alt="Medium dildo" align="middle" onClick="javascript:document.forms[0].dildo.value = 'medium';" />
<input name="submit" type="image" src="3_small.jpg" alt="Stor dildo" align="right" onClick="javascript:document.forms[0].dildo.value = 'big';" />
<input name="dildo" type="hidden" value="" /><br />
</form>