russia5 Posted March 4, 2006 Share Posted March 4, 2006 [!--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] Quote Link to comment https://forums.phpfreaks.com/topic/4083-include-error/ Share on other sites More sharing options...
High_-_Tek Posted March 4, 2006 Share Posted March 4, 2006 change that line to:[code]<?php include('submission-formhandler.php'); ?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/4083-include-error/#findComment-14162 Share on other sites More sharing options...
russia5 Posted March 4, 2006 Author Share Posted March 4, 2006 You are the Man! Thankyou very much! It works fine. Quote Link to comment https://forums.phpfreaks.com/topic/4083-include-error/#findComment-14175 Share on other sites More sharing options...
High_-_Tek Posted March 4, 2006 Share Posted March 4, 2006 :) Quote Link to comment https://forums.phpfreaks.com/topic/4083-include-error/#findComment-14211 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.