Good day all,
does anyone know what im doing wrong here, i have a page, and on that i would like to submit a button and check if the button has been submited, on the same page, i dont want to navigate to another page on submit. here is the code.
Regards
<?php
echo "here ".isset($_Get['Send']);
if (isset($_POST['Send']))
{
echo "Button Pressed";
//echo "<td colspan="3" align="left" bgcolor="#5286B5" class="style16"><em><strong>SigmaMobWirels</strong></em></td>
}
?>
<form>
<table width="100%" border="0" bgcolor="#FFFFFF">
<tr>
<td colspan="3" bgcolor="#FFFFFF"><img src="images/wirels_logo.gif" width="44" height="22" alt="wirels connect logo" /></td>
</tr>
<tr>
<td colspan="3" align="left" bgcolor="#5286B5" class="style16"><em><strong>SigmaMobWirels</strong></em></td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF"><span class="style15"> <span class="style16"> <span class="style17"> <span class="style18">
<span class="style19">
<span class="style20"> <span class="style21">
<span class="style22"> <span class="style23"> <span class="style17"> <span class="style22"> <span class="style15"> <span class="style24">
<marquee>
<strong>Sigma Messaging</strong>
</marquee>
</span></span></span></span></span></span></span></span></span></span></span></span></span></td>
</tr>
<tr>
<td colspan="3" bgcolor="#CCDDEE" class="style6">
<a href="m.wirelsc.mobi" class="style17">Contacts</a></td>
</tr>
<tr>
<td width="136" bgcolor="f7f7e7">Send To</td>
<td width="71" bgcolor="f7f7e7">
<input id="txtSendTo" type="text" /></td>
<td rowspan="4" bgcolor="f7f7e7"> </td>
</tr>
<tr>
<td bgcolor="f7f7e7">Contact List </td> <td bgcolor="f7f7e7">
<input id="Checkbox1" type="checkbox" /></td>
</tr>
<tr>
<td bgcolor="f7f7e7">Message</td>
<td bgcolor="f7f7e7">
<textarea id="txtArea" cols="20" name="S1" rows="2"></textarea></td>
</tr>
<tr>
<td bgcolor="f7f7e7"> </td>
<td bgcolor="f7f7e7">
<input id="Send" type="submit" value="Send" action = "send.php" /></td>
</tr>
<tr>
<td height="24" colspan="3" align="left" bgcolor="#5286B5"><span class="style3">Copy
Rights . SWirels 2011</span></td>
</tr>
</table>
</form>
does anyone know what im doing wrong here, i have a page, and on that i would like to submit a button and check if the button has been submited, on the same page, i dont want to navigate to another page on submit. here is the code.
Regards
<?php
echo "here ".isset($_Get['Send']);
if (isset($_POST['Send']))
{
echo "Button Pressed";
//echo "<td colspan="3" align="left" bgcolor="#5286B5" class="style16"><em><strong>SigmaMobWirels</strong></em></td>
}
?>
<form>
<table width="100%" border="0" bgcolor="#FFFFFF">
<tr>
<td colspan="3" bgcolor="#FFFFFF"><img src="images/wirels_logo.gif" width="44" height="22" alt="wirels connect logo" /></td>
</tr>
<tr>
<td colspan="3" align="left" bgcolor="#5286B5" class="style16"><em><strong>SigmaMobWirels</strong></em></td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF"><span class="style15"> <span class="style16"> <span class="style17"> <span class="style18">
<span class="style19">
<span class="style20"> <span class="style21">
<span class="style22"> <span class="style23"> <span class="style17"> <span class="style22"> <span class="style15"> <span class="style24">
<marquee>
<strong>Sigma Messaging</strong>
</marquee>
</span></span></span></span></span></span></span></span></span></span></span></span></span></td>
</tr>
<tr>
<td colspan="3" bgcolor="#CCDDEE" class="style6">
<a href="m.wirelsc.mobi" class="style17">Contacts</a></td>
</tr>
<tr>
<td width="136" bgcolor="f7f7e7">Send To</td>
<td width="71" bgcolor="f7f7e7">
<input id="txtSendTo" type="text" /></td>
<td rowspan="4" bgcolor="f7f7e7"> </td>
</tr>
<tr>
<td bgcolor="f7f7e7">Contact List </td> <td bgcolor="f7f7e7">
<input id="Checkbox1" type="checkbox" /></td>
</tr>
<tr>
<td bgcolor="f7f7e7">Message</td>
<td bgcolor="f7f7e7">
<textarea id="txtArea" cols="20" name="S1" rows="2"></textarea></td>
</tr>
<tr>
<td bgcolor="f7f7e7"> </td>
<td bgcolor="f7f7e7">
<input id="Send" type="submit" value="Send" action = "send.php" /></td>
</tr>
<tr>
<td height="24" colspan="3" align="left" bgcolor="#5286B5"><span class="style3">Copy
Rights . SWirels 2011</span></td>
</tr>
</table>
</form>