Jump to content

[SOLVED] Submiting a Form Using An Image


phpretard

Recommended Posts

When I use:

 

<input type=submit name='MainForm' Value=Submit>

 

if (isset($_POST['MainForm'])){

 

echo"SUBMITTED";

 

}

 

THIS WORKS

 

--------------------------------------------------

 

When I use:

 

<input type='image' name='MainForm' src='form_pieces/img/b_next.gif'>

 

it does not work??

 

Any Thoughts?

 

---index.php--

<?
if (isset($_POST['MainForm'])){

echo"SUBMITTED";

}
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="form_pieces/form.css">
<script src='form_pieces/js/misc.js'></script>
</head>

<body>

<?
include 'form.php';
?>

<body>

</body>

</html>

 

---form.php---

<?
echo"<form action='' method='post'>";

include 'bus_type.php';

include 'main/main_info.php';

include 'corp/main.php';

include 'partner/main.php';

include 'llc/main.php';

include 'submit.php'; // <-- The button is in there

echo"</form>";
?>

Link to comment
https://forums.phpfreaks.com/topic/114920-solved-submiting-a-form-using-an-image/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.