My code causes apache to crash....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

yeah i said that underneath it, both work however, just one is 'politically correct

whats line 12?

lol
TiD
Forum Newbie
Posts: 11
Joined: Wed Jan 21, 2004 8:57 am

Post by TiD »

ahhh... woops.. accidently added an s to the ?> tag, making it ?s>
My fault sorry.

I fixed everything up and it crashed >_<.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

roflmao

honestly mate i dont know

if you can get hold of zend i suggest you run it through that and that will help you fid out what the matter is with it
TiD
Forum Newbie
Posts: 11
Joined: Wed Jan 21, 2004 8:57 am

Post by TiD »

ummm... zend?

Thanks for your help none the less. It was greatly appreciated.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

zend = http://www.zendstudio.com/

try and get it :wink:
TiD
Forum Newbie
Posts: 11
Joined: Wed Jan 21, 2004 8:57 am

Post by TiD »

mad. thanks.
TiD
Forum Newbie
Posts: 11
Joined: Wed Jan 21, 2004 8:57 am

Post by TiD »

I FIXED IT! YAY!

Code: Select all

// page2.php 
<? 
echo "<FORM action='page3.php'>";  <= Problem Here.
echo "Name: $_POST&#1111;'name1']"; 
echo "<input type="hidden" name="relay" value="'$_POST&#1111;'name']'">"; 
echo "<INPUT TYPE='submit' VALUE='Submit'>\n"; 
echo "</form>"; 
?>
It seems that apache does not like <form> tags without and "method=". After I fixed that, I was able to send an em@il. Might be due to apache getting confused and not knowing what to do with the $_POST in page3.php.

Thanks for all your help. Muchly Appreciated.
Post Reply