Solved

CSS and PHP Question

Posted on 2013-01-18
3
395 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

777 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