Jump to content

Parse error: syntax error, unexpected T_VARIABLE


Callumtg
Go to solution Solved by computermax2328,

Recommended Posts

I'm new to all this stuff so sorry if it's a simple problem

I'm trying to create the PHP submit form and this message keeps popping up:

Parse error: syntax error, unexpected T_VARIABLE on line 6

 

 

this is the code:

 

 

1   <?php
2
3   $MyMail = $_POST['mymail']
4    //Collect my email address using the post method and put it in a box called $MyMail//
5
6    $msg .= "select: ".$_POST['select']."\n";
7    //collect what is in the 'select' field and put it in the box called $msg//
8    mail ($MyMail, 'select',$msg);
9    //mail the contents of $msg to MyMail and display 'select' on screen//
10  ?>

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.