zgkhoo Posted November 1, 2007 Share Posted November 1, 2007 <?php session_start(); if(isset($_P0ST['click'])){ echo "button clicked"; $_SESSION["serial1"]= $_POST["serial1"]; //$_SESSION["code_type"]= $_POST["code_type"]; //$_SESSION["spoint"]= $_POST["spoint"]; //$_SESSION["screate_date"] = $_POST["screate_date"]; //$_SESSION["sexpiry_date"]= $_POST["sexpiry_date"]; // header ('Refresh:2;url=placebet3.php'); } ?> <html> <body> <form action="add1card.php" method="POST"> <table border="1"> <tr> <td width="181">Serial Number</td> <td width="168"> <input type="text" name="serial1" /> </td> </tr> <tr> <td width="181">Activate Code Type</td> <td width="168"> <select name="code_type"> <option value="Character(Big Letter)">Character(Big Letter)</option> <option value="Character(Small Letter)">Character(Small Letter)</option> <option value="Number">Number</option> <option value="Mix">Mix</option> </select> </td> </tr> <tr> <td width="181">Point</td> <td width="168"> <input type="text" name="spoint"> </td> </tr> <tr> <td width="181">Created Date</td> <td width="168"> <input type="text" name="screate_date"> </td> </tr> <tr> <td width="181">Expirly Date</td> <td width="168"> <input type="text" name="sexpiry_date"> </td> </tr> <tr> <td width="181"> <input type="reset" name="reset" /> </td> <td width="168"> <input type="submit" name='click'/> </td> </tr> </table> <!--</td> </tr> </table>--> </form> </body> </html> testing for many time, the button still wont work... why? thanks.. Quote Link to comment https://forums.phpfreaks.com/topic/75582-solved-the-button-wont-work-why/ Share on other sites More sharing options...
trq Posted November 1, 2007 Share Posted November 1, 2007 Don't see why not. This is add1card.php were looking at? Quote Link to comment https://forums.phpfreaks.com/topic/75582-solved-the-button-wont-work-why/#findComment-382423 Share on other sites More sharing options...
zgkhoo Posted November 1, 2007 Author Share Posted November 1, 2007 this file is add1card.php , it POST to itself. Quote Link to comment https://forums.phpfreaks.com/topic/75582-solved-the-button-wont-work-why/#findComment-382425 Share on other sites More sharing options...
pocobueno1388 Posted November 1, 2007 Share Posted November 1, 2007 That isn't a normal dollar sign... if (isset($_P0ST['click'])){ Quote Link to comment https://forums.phpfreaks.com/topic/75582-solved-the-button-wont-work-why/#findComment-382429 Share on other sites More sharing options...
zgkhoo Posted November 1, 2007 Author Share Posted November 1, 2007 huh? dollar sign ? $<--this?? y not normal? i dun see any different .. Quote Link to comment https://forums.phpfreaks.com/topic/75582-solved-the-button-wont-work-why/#findComment-382431 Share on other sites More sharing options...
pocobueno1388 Posted November 1, 2007 Share Posted November 1, 2007 I figured out whats wrong, for the "O" in $_POST, you are using a zero. Quote Link to comment https://forums.phpfreaks.com/topic/75582-solved-the-button-wont-work-why/#findComment-382436 Share on other sites More sharing options...
zgkhoo Posted November 1, 2007 Author Share Posted November 1, 2007 0 is like that. dun play ..bro.. thanks. Quote Link to comment https://forums.phpfreaks.com/topic/75582-solved-the-button-wont-work-why/#findComment-382468 Share on other sites More sharing options...
pocobueno1388 Posted November 1, 2007 Share Posted November 1, 2007 0 is like that. dun play ..bro.. thanks. Huh? So did it fix it? If it did, don't forget to press solved. Quote Link to comment https://forums.phpfreaks.com/topic/75582-solved-the-button-wont-work-why/#findComment-382471 Share on other sites More sharing options...
trq Posted November 1, 2007 Share Posted November 1, 2007 I think pocobueno1388 might be right. You appear to be using a zero (0) instead of a nought (O) on this line.... if (isset($_P0ST['click'])) { Quote Link to comment https://forums.phpfreaks.com/topic/75582-solved-the-button-wont-work-why/#findComment-382476 Share on other sites More sharing options...
zgkhoo Posted November 1, 2007 Author Share Posted November 1, 2007 solved..thanks..weird duno y will key in zero.. Quote Link to comment https://forums.phpfreaks.com/topic/75582-solved-the-button-wont-work-why/#findComment-382487 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.