473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

HELP: I got a "Parse error" when try to get data from form

I got a "Parse error: parse error in ..." in this line:

if(empty($_POST['ssn']){
.....

But if I fist assign $ssn=$_POST['ssn']; and then if(empty($ssn){ ... it is
working.

Any advice? Thanks in advance.

Reards,
-Steven
Jul 16 '05 #1
2 4087
So it still isn't working?

Steven wrote:
The error I got is:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING'

Thanks.

"Steven" <xu*****@attbi.com> wrote in message
news:oqRLa.61294$R73.8171@sccrnsc04...
I got a "Parse error: parse error in ..." in this line:

if(empty($_POST['ssn']){
....

But if I fist assign $ssn=$_POST['ssn']; and then if(empty($ssn){ ... it


is
working.

Any advice? Thanks in advance.

Reards,
-Steven



Jul 16 '05 #2
Thanks !! My first post is a typo (missing the parenthesis ). But I just
make it work by using double quote for ssn:

if(empty($_POST["ssn"])){
....

The single quote will work if I assign the variable first, but won't work if
I don't. But it is working fine now with the double quote... Some kind of
type casting ?

-Regards,
Steven
"Marcus" <Ju********@aol.com> wrote in message
news:3E**************@aol.com...
So it still isn't working?

Steven wrote:
The error I got is:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING'

Thanks.

"Steven" <xu*****@attbi.com> wrote in message
news:oqRLa.61294$R73.8171@sccrnsc04...
I got a "Parse error: parse error in ..." in this line:

if(empty($_POST['ssn']){
....

But if I fist assign $ssn=$_POST['ssn']; and then if(empty($ssn){ ... it


is
working.

Any advice? Thanks in advance.

Reards,
-Steven


Jul 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mrwoopey | last post by:
Hi, My OLAP data cube is giving me the following error when I am manipulating OLAP data cube views: "the data being processed is over the allowed limit" I know that this message is caused by...
2
by: Yarco | last post by:
I'm learning for docbook under win32. I download: openjade-1_3_1-2-bin docbook-xml-4.4 docbook-dsssl-1.79 ldp.dsl And then copy all openjade bin\ to win32 system\, and then create a directory...
1
by: RWC | last post by:
Hello, I have a client who has just purchased a new computer with Windows XP installed. When trying to set up his Access application from a disc that he previously used to successfully set this...
1
by: Dgates | last post by:
This request might belong in a "SQL"-related newsgroup, but it's such a pain using Agent to subscribe to a new group (and download its 50,000 messages!) just to ask one question. So, since it...
1
by: VB Programmer | last post by:
I am making a simple VB.NET app to send emails. I put a test button on the form with code like this: Imports System.Web.Mail : Dim msgEmail As New System.Web.Mail.MailMessage With msgEmail...
0
by: ksayal | last post by:
Hi, I'm creating a project. Whenever I try to add a user control or add an aspx page it gives me the following error. When I remove the inherits="" thing, it shows up the page.... What would be...
2
by: Gungmas | last post by:
When I trace the exection in my program the source code does not correspond to where the code is supposed to execute. When I single step the marker stops on empty lines or rows of comment also so...
3
by: keithb | last post by:
Using a GridView, I get a "Specified cast is not valid" error when binding the Visible propery of a hyperlink control to a DataTable text field. The error goes away if I replace the data binding...
3
by: JToe | last post by:
Hi, I have a sql statement which is as follows:- INSERT INTO expense(Jan) SELECT sum(ECFAmount) FROM Transaction WHERE Date BETWEEN (#01/01/2007#) AND (#01/31/2007# ) When i execute the...
18
by: ana10192000 | last post by:
VB6.0 Private dbParts as Database Private dbParts as Recordset guys help, i can't execute my program compiler error says: " user-defined type not defined " i'm not much a knowledgable...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.