neex1233 Posted January 22, 2010 Share Posted January 22, 2010 I have a PHP message script, and when I try to send a message (this just started happening today, all was fine before) it takes it to the delete form. On the send form page, there is a PHP include, which is the layout, and when the layout file is included the send button takes you to the delete form, but when the layout is not on the page, it takes you to the normal send page and works perfectly! Can anyone help me with this? It has never happened to me before! Quote Link to comment Share on other sites More sharing options...
Psycho Posted January 22, 2010 Share Posted January 22, 2010 Let me pull out my crystall ball How are we expected to help you without seeing any code? You could just include a blank file and then put parts of the original file back in a part at the time until you experience the same problem so you can pinpoint the problem code, other than that I have no idea. Quote Link to comment Share on other sites More sharing options...
neex1233 Posted January 22, 2010 Author Share Posted January 22, 2010 Thanks... Here is the send page <?php include("directory/lyt.php"); ?> <form action="send.php" method="post"> To:<br> <input type="text" name="to" size="7"/><br /> Subject:<br> <input type="text" name="subject" maxlength="20" size="18" /><br /> Message:<br> <textarea rows="4" cols="35" name="message" onFocus="this.value=''">Hi!</textarea><br> <input type="submit" value="Send!" /> </form> <br><br> <a href="URL"><small>« Back to Inbox</small></a> Quote Link to comment Share on other sites More sharing options...
Psycho Posted January 22, 2010 Share Posted January 22, 2010 If the problem only occurs when including the layout file then it stands to reason that the problem has something to do with the code there. 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.