zgkhoo Posted August 18, 2007 Share Posted August 18, 2007 <html> <body> <table width="935" height="759" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="215" height="61"><form name="form3" method="post" action=""> <p> <input type="submit" name="Submit3" value="Add"> <input type="submit" name="Submit4" value="Modify"> <input type="submit" name="Submit5" value="Delete"> <input type="submit" name="Submit6" value="PrintOut"> <input type="submit" name="Submit2" value="Export"> </p> </form></td> <td width="760"><form name="form2" method="post" action=""> <input name="textfield" type="text" > <input type="submit" name="Submit" value="Go"> </form></td> </tr> <tr> <td height="411" align="left" valign="top"><form name="form4" method="post" action=""> <table width="198" height="156" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="81">Game Serial No</td> <td width="117"><input name="textfield2" type="text" size="15"></td> </tr> <tr> <td>Game Code</td> <td><input name="textfield22" type="text" size="15"></td> </tr> <tr> <td>Password</td> <td><input name="textfield23" type="text" size="15"></td> </tr> <tr> <td>Point</td> <td><input name="textfield24" type="text" size="15"></td> </tr> <tr> <td>Exp. Day </td> <td><input name="textfield25" type="text" size="15"></td> </tr> <tr> <td colspan="2"><input type="submit" name="Submit7" value="OK"> <input type="submit" name="Submit8" value="Cancel"></td> </tr> </table> </form></td> <td align="left" valign="top"><form name="form1" method="post" action=""> <p> <textarea name="textarea" cols="100" rows="50">Game Serial No. | Game Code | Password | Point | Exp. Day |</textarea> </p> </form></td> </tr> <tr> <td> </td> <td> </td> </tr> </table> </body> </html> how to make "add" button link to add.php? thanks. Quote Link to comment https://forums.phpfreaks.com/topic/65558-how-to-link-button-to-php-document/ Share on other sites More sharing options...
JoelRocks Posted August 18, 2007 Share Posted August 18, 2007 Nice and easy to send this infomation to a php page you simply set the action to action="add.php". http://www.w3schools.com/php/php_forms.asp - More infomation on this topic. Quote Link to comment https://forums.phpfreaks.com/topic/65558-how-to-link-button-to-php-document/#findComment-327403 Share on other sites More sharing options...
zgkhoo Posted August 19, 2007 Author Share Posted August 19, 2007 i just wanna link the "add" button with add.php not whole form. u said that action=add.php ...but this seem is form action, not just button action. pls correct me thanks you very much Quote Link to comment https://forums.phpfreaks.com/topic/65558-how-to-link-button-to-php-document/#findComment-327937 Share on other sites More sharing options...
V-Man Posted August 19, 2007 Share Posted August 19, 2007 I guess I dont understand why you're trying to do this... but try... <INPUT TYPE="button" onClick="parent.location='add.php'"> Quote Link to comment https://forums.phpfreaks.com/topic/65558-how-to-link-button-to-php-document/#findComment-328329 Share on other sites More sharing options...
ToonMariner Posted August 19, 2007 Share Posted August 19, 2007 if that is all you are doing then a link is far more appropriate - if you are trying to submit form info to add.php then simply use teh action attribute of teh form tag. always remember the KISS principle Quote Link to comment https://forums.phpfreaks.com/topic/65558-how-to-link-button-to-php-document/#findComment-328359 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.