r14_saj Posted April 11, 2009 Share Posted April 11, 2009 hi i am trying to add update and delete and edit a record by using one form and calling three diffrent php scripts although i cant understand how to do so can anyone help my html <html> <head> <title>Saj_Sales_Cars</title> </head> <body> <form action='Saj_Sales_Cars_Admin.php' method='post'> <table border="0"> <tr> <td>Registration Number:</td> <td> <input type='text' name='Registration_Number'></td> <td>Road Tax:</td> <td> <input type='text' name='Road_Tax'></td> <td>Type of transmission: </td> <td> <select id ="Type_of_Transmission" name = "Type_of_Transmission"> <option value="Automatic">Automatic</option> <option value="Manual">Manual</option> </select> </td> <td>Sunroof:</td> <td> <select id ="Sunroof" name = "Sunroof"> <option value="Yes">Yes</option> <option value="No">No</option> </select> </td> <td>Other Extras:</td> <td> <input type='text' name='Other_Extras'></td> </tr> <tr> <td>Year:</td> <td> <select id ="Year" name = "Year"> <option value="1998">1998</option> <option value="1999">1999</option> <option value="2000">2000</option> <option value="2001">2001</option> <option value="2002">2002</option> <option value="2003">2003</option> <option value="2004">2004</option> <option value="2005">2005</option> <option value="2006">2006</option> <option value="2007">2007</option> <option value="2008">2008</option> <option value="2009">2009</option> </select> </td> <td>Service History:</td> <td> <select id ="Service_History" name = "Service_History"> <option value="FSH">FSH</option> <option value="SH">SH</option> <option value="No">No</option> </select> </td> </tr> </table> <br><br> <input type='submit' value='Insert'> </form> </body> </html> thanks Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted April 11, 2009 Share Posted April 11, 2009 don't use three scripts - use one and pass a parameter teling it what to do - then you don't need a form that requires javascript to control where the form is posted which can be turned off and cause you all manner of headaches. Quote Link to comment 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.