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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.