| Code: |
| <?php
//original page code. $form_type=$_POST['form_type']; if($form_type=='tellafriend') include('tellafriend.php'); else if($form_type=='contactus') include('include_contact.php'); else if(!isset($_POST['form_type']) { require('include_originalpage.php'); } ?> |
its really hard to program in php
at the moment the error is
| Quote: |
| Parse error: syntax error, unexpected '{' in C:\xampp\htdocs\site\project\form_maker.php on line 12 |
There is nothing on the line 12 above.
and if a change the code a little bit to
| Code: |
| <?php
//original page code. $form_type=$_POST['form_type']; if($form_type=='tellafriend') include('tellafriend.php'); else if($form_type=='contactus') include('include_contact.php'); else if(!isset($_POST['form_type']) require('include_originalpage.php'); ?> |
the error occurs
| Quote: |
| Parse error: syntax error, unexpected T_REQUIRE in C:\xampp\htdocs\site\project\form_maker.php on line 12 |
what the problem is?
Last edited by imagefree on Sat Oct 27, 2007 7:06 am; edited 1 time in total
