i am getting this error but i think there is no error.
any one look at this

$affiliateForm = array(
      "username"=>array("User Name","text",""),
      "password"=>array("Password","password",""),
      "site"=>array("Your Web Site","text","http://"),
      "email"=>array("Your Email","text","yourname@yoursite.com"),
      "akey"=>array("","hidden",""),
      "ptype"=>array("Payment Method","select","check|paypal"),
      "pemail"=>array("Paypal Email","text",""),
      "address"=>array("Your Address","textarea","")
  );

i am getting Parse error: parse error, unexpected '=', expecting ')' on this line. where is the problem?

Dani AI

Generated

This looks like the classic case of the array key/value arrow being HTML-encoded when the code was copied or saved, which makes PHP see the wrong tokens and throw a parse error. already spotted the encoding in the posted snippet; confirm the file actually contains the PHP key/value operator (not an ampersand-based HTML entity).

Quick checks and fixes: open the .php file in a plain-text editor and inspect the raw characters (look for ampersand-style entities or other non-ASCII junk); make sure the array is inside <?php ... ?> tags; check for missing commas, mismatched quotes or parentheses; remove any invisible characters or a UTF-8 BOM by saving as "UTF-8 without BOM" in your editor; and lint the file to get an exact line number with php -l filename.php. If the code came from a web page, copy from the page source or use plain-text paste to avoid automatic entity conversion.

See the PHP array documentation for correct syntax PHP arrays and the command-line options page for the lint switch Command-line options.

=&gt;

should be

=>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.