Jump to content

unexpected T_Variable Error


discussnow

Recommended Posts

@Maq: But that wouldn't give the Unexpected T_VARIABLE warning, would it?

 

Never said it did  ;) but you're right, it wouldn't resolve the Unexpected T_VARIABLE warning.  I was just telling him how to properly display the contents of an array.

 

Anyway, your syntax is correct now, I don't know what is causing this.  Does the error specify a line number?

What's before <?php ?

 

html

 

Lol, usually is, post the code!!!

Haha realized the stupidity of what I said :P

 

<html>

<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">

<title>

Paragraph Scrambler

</title>

<body> 

Paste Paragraph <br>

<textarea name="para" type="text" row="5" col="5"><br>

<input name="send" type="submit" value="Submit!">

<input type="reset" value="Cancel">

</body>

<? php

$para  = $_POST['send'];

$result = explode('.',$para);

echo $result ;

?>

 

</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.