Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

CSS and PHP Question

Posted on 2013-01-18
3
396 Views
Last Modified: 2013-01-18
I am having issues with my CSS and PHP code.  I will post 2 questions here and once the 1st is answered I will repost the 2nd question.  

1st Question: CSS

In the webpage BookMark_This.html I am trying to put the loginMenu div inside the headerInnerContainer div and right justify it.  As well I am trying to position the registration div below and to the right of  the headerInnerContainer div.  All this is shown in the mockup
BookMark This Mockup.docx attached.

2nd Question PHP
I was using an example on the web from http://www.phpeasystep.com/phptu/6.html as a guide to  writing the login code.  When I try to enter data in to the username and password box I get the following syntax errors:


Notice: Undefined index: member_username in C:\TMA2\Project1\bookmark.php on line 30

Notice: Undefined index: member_password in C:\TMA2\Project1\bookmark.php on line 31

The code for both questions are attached
bookmark.css
bookmark.php
Bookmark.sql
BookMark-This.html
white-wall.png
subtle-grunge.png
BookMark-This-Mockup.docx
0
Comment
Question by:Genus1
3 Comments
 
LVL 17

Assisted Solution

by:Chris Harte
Chris Harte earned 250 total points
ID: 38792891
The php problem is caused by the file bookmark-this.html on line 52

<form method: "post" action= "bookmark.php">

should be an equals not a colon

<form method="post" action= "bookmark.php">
0
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 250 total points
ID: 38793101
These are almost certainly different issues (and should be two questions) because CSS is a client-side technology and PHP runs on the server.  I'm pretty sure MunterMan is right about the malformed <form> tag.  There may be other issues, but browsers tend to ignore the malformed parts of the HTML, substituting default values instead.  In this case the default values were "GET" for the request type and "current URL" for the action script.

You can have more than one form on a page.  Your programming might be simplified if you used separate forms.  Whenever you see two submit buttons (especially without name attributes) it's worth asking if there should be two forms.

A good tool for validating your HTML is available here:
http://validator.w3.org/

A good tool for data visualization is this function:
http://php.net/manual/en/function.var-dump.php

A good guide to writing a technical question is available here:
http://sscce.org/

All PHP client authentication scripts follow the same design pattern, shown and explained here:
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_2391-PHP-login-logout-and-easy-access-control.html
0
 

Author Closing Comment

by:Genus1
ID: 38793961
Great,  I will work through the examples.

Thanks.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question