954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

PHP syntax error - unexpected T_STRING in /net/home/z6zhou/public_html/signup.php on

// create an acount code starting


Desired Username

Email

Real name

Your URL (optional)

Password

Confirm Password




Copyright © 2009

// Site Meter


// end of creating an acount code

zhou1919
Newbie Poster
10 posts since Oct 2009
Reputation Points: 9
Solved Threads: 0
 

Use code tags. It really hard to follow your code.

There is 0 php in the code you posted. The only reason you are getting the error is because you have short_tags enabled.

<?xml version="1.0" encoding="utf-8"?>

causes an error because <? is the opening (short) tag for php.
Replace it with:

<?php echo '<?xml version="1.0" encoding="utf-8"?>'; ?>
kkeith29
Nearly a Posting Virtuoso
1,357 posts since Jun 2007
Reputation Points: 235
Solved Threads: 194
 

The error is solved. Thanks. My php code is to create an online account for signing up in my homepage. But it doesn't work. Could you tell me the reasons?

zhou1919
Newbie Poster
10 posts since Oct 2009
Reputation Points: 9
Solved Threads: 0
 

You need to post the code.

kkeith29
Nearly a Posting Virtuoso
1,357 posts since Jun 2007
Reputation Points: 235
Solved Threads: 194
 

Desired Username

Email

Real name

Your URL (optional)

Password

Confirm Password




Copyright © 2009

sea.jpg

zhou1919
Newbie Poster
10 posts since Oct 2009
Reputation Points: 9
Solved Threads: 0
 

Thats not php. Its html and javascript.

kkeith29
Nearly a Posting Virtuoso
1,357 posts since Jun 2007
Reputation Points: 235
Solved Threads: 194
 
But it doesn't work. Could you tell me the reasons?


Hey.

Sadly, the fact that the code doesn't work doesn't exactly help us debug it. Nor does posting the part of your PHP code that isn't actually PHP ;-)

Please explain why/how it isn't working, what you have tried to fix it, and why it failed. And, of course, any and all error messages you get.

We aren't here to debug the code for you. We are here to helpyou debug it.

Atli
Posting Pro
540 posts since May 2007
Reputation Points: 93
Solved Threads: 70
 

Desired Username

Email

Real name

Your URL (optional)

Password

Confirm Password




Copyright © 2009

sea.jpg

zhou1919
Newbie Poster
10 posts since Oct 2009
Reputation Points: 9
Solved Threads: 0
 

I tried to create an online account for signing up in my homepage by php code. But my code seems html and not php. My question is how to change my html code into php and make my online sign up account work. My homepage is
http://www.bioinformatics.uwaterloo.ca/~z6zhou/signup.php
Please take a look at the source code and tell me why it doesn't work. Thanks a lot.

zhou1919
Newbie Poster
10 posts since Oct 2009
Reputation Points: 9
Solved Threads: 0
 

Search online for registration scripts, there are lots of them.

We will not write your code for you, go research it and ask specific questions when something doesn't work.

Use code tags, its easy. Highlight the code and click the Code button...

Also, why the hell do you have a >2MB jpg image on the page? Waste of bandwidth there.

Will Gresham
Master Poster
755 posts since May 2008
Reputation Points: 96
Solved Threads: 125
 

Could you give me some hints? I got troubles in researching it myself.

zhou1919
Newbie Poster
10 posts since Oct 2009
Reputation Points: 9
Solved Threads: 0
 
Will Gresham
Master Poster
755 posts since May 2008
Reputation Points: 96
Solved Threads: 125
 

To create the registration account in my homepage, do I need to set up a database to store all usernames and passwords? If I do, how to set up the database on the unix server where my homepage is on?

zhou1919
Newbie Poster
10 posts since Oct 2009
Reputation Points: 9
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You