Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Member AllenP's Avatar
    Join Date
    Jul 2005
    Location
    Perris,CA
    Posts
    55
    Member #
    10453
    Hi,
    I'm learning PHP right now but I keep getting a stupid error which i dont understand.
    I am running Apache and PHP 5.1 on my local machine, is this a problem with my code or is it a configuration issue?
    I ran this simple script (slightly modified) with sucess on a yahoo server


    "Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Apache\Apache2\htdocs\handle_form.php on line 15"

    This is the html with brackets replaced with dots


    ..!-- LINKS THE USER TO THE PHP SCRIPT THAT WILL PROCESS THEIR INPUT --..
    ..form action="handle_form.php" method="post"..


    ..!-- LET'S THE USER SELECT THEIR SALUTATION....... MR.,MS.,MRS., ECT.... --..
    Mr. ..input type="radio" name="title" value="Mr." /..
    Mrs. ..input type="radio" name="title" value="Mrs."/..
    Ms. ..input type="radio" name="title" value="Ms."/..
    ..br /..

    ..!-- DROP DOWN MENU OF WHAT THE USER THINKS OF THE PAGE --..
    Response: ..select name="response"..
    ..option value="excellent">This is excellent.../option..
    ..option value="okay"..This is okay.../option..
    ..option value="boring"..This is Boring../option..
    ../select..


    ..!-- THE USER INPUTS THEIR EMAIL ADRESS HERE --..
    Email Adress: ..input type="text" name="email" size="20" /..


    ..!-- THE USER INPUTS THEIR NAME HERE --..
    Name: ..input type="text" name="name" size="20" /.. ..br /..

    ..!-- THE USER INSERTS THEIR EXTRA COMMENTS HERE --..
    Comments:
    ..br /..
    ..textarea name="comments" rows="3" cols="30"..
    ../textarea..

    ..!-- SUBMIT BUTTON --..
    ..br /..
    ..input type="submit" name="submit" value="Send Me Feedback" /..
    ../form..




    This is the php code

    ..?php

    print

    "hi, $_post['title'] $_post['name']";

    ?..

  2.  

  3. #2
    Member AllenP's Avatar
    Join Date
    Jul 2005
    Location
    Perris,CA
    Posts
    55
    Member #
    10453
    Nevermind, I didnt capitalize the variable _POST. Sorry, I'm a noob.:bored:


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:55 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com