Current location: Hot Scripts Forums » Programming Languages » PHP » Problem: PHP Parse error: syntax error, unexpected T_STRING


Problem: PHP Parse error: syntax error, unexpected T_STRING

Reply
  #1 (permalink)  
Old 07-29-09, 12:04 PM
joerg_jb joerg_jb is offline
New Member
 
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Problem: PHP Parse error: syntax error, unexpected T_STRING

Hi guys my php script comes up with the following error message:

PHP Parse error: syntax error, unexpected T_STRING in line 86

problem .. my script doesnt have 86 lines !!!
here my phph script
PHP Code:

<?php
  $email 
$_REQUEST['email'] ;
  
$nombre $_REQUEST['nombre'] ;
  
$ciudad $_REQUEST['ciudad'] ;
  
$calle $_REQUEST['calle'] ;
  
$pais $_REQUEST['pais'] ;
  
$telefono $_REQUEST['telefono'] ;
  
$deposito $_REQUEST['deposito'] ;
  
$paypal $_REQUEST['paypal'] ;
  
$mo $_REQUEST['mo'] ;
  
$message $_REQUEST['message'] ;
  
$claro $_REQUEST['claro'] ;
  
$desbloqueado $_REQUEST['desbloqueado'] ;
  
$iphone $_REQUEST['iphone'] ;
  
$tiporeloj $_REQUEST['tiporeloj'] ;
  
$mp3mp4-1gb $_REQUEST['mp3mp4-1gb'] ;
  
$mp3mp4-2gb $_REQUEST['mp3mp4-2gb'] ;
  
$mp3mp4-4gb $_REQUEST['mp3mp4-4gb'] ;
  
$mp3mp4-16gb $_REQUEST['mp3mp4-16gb'] ;
  
$camara $_REQUEST['camara'] ;
  
$walkie $_REQUEST['walkie'] ;
  
$pc $_REQUEST['pc'] ;


  
mail"info@mywebpage.com""Pedido",
    
$message"From: $email);

  
header"Location: http://www.mywebpage.com/gracias.html" );
?>
I created a html page where the customer has to fill out or choos by clicking several boxes several forms... by clicking enter this will be forward to my php page... to forwarding all this information to my email.

any help ?

Last edited by Nico; 07-29-09 at 12:40 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-29-09, 01:26 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Look closely at the error message. It should name the file it is reporting the error on.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-29-09, 01:53 PM
joerg_jb joerg_jb is offline
New Member
 
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
it doesnt name any file.....
My Error Log file say just... error en line 86... nothing else
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 07-29-09, 02:46 PM
apinksquash apinksquash is offline
New Member
 
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
$mp3mp4-1gb = $_REQUEST['mp3mp4-1gb'] ;
$mp3mp4-2gb = $_REQUEST['mp3mp4-2gb'] ;
$mp3mp4-4gb = $_REQUEST['mp3mp4-4gb'] ;
$mp3mp4-16gb = $_REQUEST['mp3mp4-16gb'] ;
The above is your problem. You can't have a dash as part of your variable name. Change the dashes to underscores like such "$mp3mp4_2gb".
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP or PHP which is better? nepala The Lounge 9 07-14-10 06:48 AM
PHP login problem kaceykeleher PHP 5 03-13-09 12:23 PM
[SOLVED] Getting php vars to work in inline javascript problem med267 PHP 4 11-06-08 09:38 PM
php email problem sujata_ghosh PHP 0 11-06-08 06:16 AM
php value problem komrad PHP 1 10-13-08 09:31 PM


All times are GMT -5. The time now is 10:46 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.