jquery/php problem

Okay, i am having an index.php which links to helpers.js file And in this helpers.js file is a login form which doesn’t gets displays on index.php page .It seems helpesr.js is NOT loading at all . Also there is a database connection file named common.php which connects to the database . but is not able to retrieve data if i code a query statement inside common.php . But that same database and table i queried by creating a sepearate file was successful .
I will be attaching the files you can query them yourselves and see the php below that line gets displayed on index.php as it is (in my case it displays ) . Remember the color of index.php is black .
So if you want to echo text on this page do apply
.

Also i would like to mention that i am on a LOCALHOST . But the common.php ,has some server variables in it which are used in the end in Header function to redirect to index.php if the user is not logged in already .

Here is the links to source code http://cdn.cs50.net/2011/fall/seminars/jQuery/jQuery_src.zip

So , I hope i have laid my problem well enough for you guys here to help me out .hoping for a workable solution soon!!
Thank you .

Are you moving your own project from CS50 or are you trying to set this up for yourself?

Just a note, anyone can view the comments without any authentication and any content that is put inside of the helpers.js file can be read - e.g. your welcome message on the page.

As a check, do you have the helpers.js file in the right place? Can you post how the files are set out and your index.php (if modified), e.g:

/index.php /helpers.js

Sponsor our Newsletter | Privacy Policy | Terms of Service