Jump to content

include error


russia5

Recommended Posts

[!--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]

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

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

Can anyone tell me what I am doing wrong?[/quote]
Link to comment
https://forums.phpfreaks.com/topic/4083-include-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.