Jump to content


Photo

include error


  • Please log in to reply
3 replies to this topic

#1 russia5

russia5
  • Members
  • PipPipPip
  • Advanced Member
  • 94 posts

Posted 04 March 2006 - 02:25 PM

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]I have a php form handler in the same file as the form ie)

<?php form handler ?>
<html form /html>

I would like to pull the form handler out and put it in its own file, then include it in the form.

So, I did this:[/quote]

<?php include('submission-formhandler.php')>
<html>
<head>
<meta yadayada>
<title>My Form for Submission</title>
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]This gave me the following error:

Parse error: parse error, unexpected'<'in/home/russia5/public_html/submission-english1.php on line 5
<html> is on line 5.

Can anyone tell me what I am doing wrong?[/quote]

#2 High_-_Tek

High_-_Tek
  • Members
  • PipPipPip
  • Advanced Member
  • 72 posts

Posted 04 March 2006 - 03:04 PM

change that line to:

<?php include('submission-formhandler.php'); ?>


#3 russia5

russia5
  • Members
  • PipPipPip
  • Advanced Member
  • 94 posts

Posted 04 March 2006 - 03:54 PM

You are the Man! Thankyou very much! It works fine.

#4 High_-_Tek

High_-_Tek
  • Members
  • PipPipPip
  • Advanced Member
  • 72 posts

Posted 04 March 2006 - 06:12 PM

:)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users