Syntax error in code forms.

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
landi
php-forum Active User
php-forum Active User
Posts: 386
Joined: Thu Mar 15, 2012 3:59 pm

Re: Syntax error in code forms.

Post by landi » Tue Aug 05, 2014 9:22 am

It's a bit old, but in case anyone else reads this...

1) You need to close and re-open your php tags appropriately. e.g.

You have:

Code: Select all

}
<form action="./soap.search.php" method ="get">  ## syntax error here ##
<input type="text" name="query">
<input type="hidden" name="page" value="1">
<select name="mode">

$modes = array();
You should have:

Code: Select all

}
?>
<form action="./soap.search.php" method ="get">  ## syntax error here ##
<input type="text" name="query">
<input type="hidden" name="page" value="1">
<select name="mode">
<?php
$modes = array();
Plus you have several undefined variables further down.
phpStorm told me this - it's my third php editor, and it's really magic. If you are a home user it costs less than a good night out...

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests