Jump to content

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/189491-really-wierd-problem/
Share on other sites

Let me pull out my crystall ball  :psychic:

 

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.

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>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.