buddylee17 216 Practically a Master Poster

I believe ryan_vietnow meant ($variable21=="") instead of ($variable21="") . It may not fix your problem, but == is used to compare a variable to a value or to another variable. = is used to assign a value to a variable. Don't get is equal to (==) confused with equals(=). You could also try:

if(empty($variable21)){
echo "Meeting time is not yet determined. Please check again later.";
}
else{
echo "<p<b>Meetings:</b> $variable21</p>";
}

If all else fails, use strlen to check the strings length aka the number of characters in the string assigned to the variable:

if(strlen($variable21)>1){ 
echo "<p<b>Meetings:</b> $variable21</p>";
}
else{
echo "Meeting time is not yet determined. Please check again later.";
}
buddylee17 216 Practically a Master Poster

Yes. You'll need some JavaScript and a server side script like PHP, ASP, JSP, or ColdFusion.
The form field will populate using an onclick event. You could also incorporate an xmlhttprequest (AJAX) to do this.

buddylee17 216 Practically a Master Poster

What type of query (SELECT, UPDATE, INSERT...). Also, can you provide the html for the checkboxes?

buddylee17 216 Practically a Master Poster

You'll need a server side script to make this work. What I mean is that you'll have to have a premade frameset with the external link loading dynamically based on which link the user clicked. Can you use php on your site?

buddylee17 216 Practically a Master Poster

Below is the basic layout of a w3c valid frameset document. Obviously, the header.html is the document containing the header and the content.html is the document containing the content. Unless you use a link target of _parent, A link in the content will only cause the content frame to change and the header will stay intact. The <frameset rows="100,*"> tells the browser that the top frame is 100 pixels in height and the bottom content height is auto(*). Hope this helps.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Page Title</title>
</head>

<frameset rows="100,*">
<noframes>
    <body>Your browser does not handle frames!</body>
  </noframes>
  <frame src="header.html" name="topFrame" scrolling="no" noresize="noresize" id="topFrame" title="topFrame" />
  <frame src="content.html" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
</html>
buddylee17 216 Practically a Master Poster

Okay, that means that $_SERVER equals index.php. Therefore, compare the current page($_SERVER) to index.php:

<?php
if($_SERVER['SCRIPT_NAME'] == 'index.php')
{
$style_home = 'style="background-color: #6C674F"';
}
?>
buddylee17 216 Practically a Master Poster

The idea is to store the images in a folder on the server and to store the image path in MySQL. MySQL was not designed for images, only raw data. However it can be done. Here's a link to a tutorial on storing directly to the db and here's one for storing on the server.

buddylee17 216 Practically a Master Poster

echo or print the variable to see what it actually is.

<?php
if($_SERVER['SCRIPT_NAME'] == '/bobo/index.php') {
$style_home = 'style="background-color: #6C674F"';
} 
echo $_SERVER['SCRIPT_NAME'];
?>
buddylee17 216 Practically a Master Poster

echo a meta refresh in the head of the document if certain conditions exist.

if(empty($_SESSION['ID'])){
echo'<meta http-equiv="refresh" content="0;url=http://www.yoursite.com/newpage.htm" />';
}
buddylee17 216 Practically a Master Poster

HTML can't do math. You'll have to use JavaScript or something server side. What's the formula for the calculation?

buddylee17 216 Practically a Master Poster

For one thing, they all use a different default style sheet. One suggestion to fix this is explained here.
Also, here is a list of styles and browsers that support them.

buddylee17 216 Practically a Master Poster

I can't stand frames but, the only solution I can think of would be to use them. Otherwise the document content will refresh on each page change.

buddylee17 216 Practically a Master Poster

We need to know more about your situation. Be more specific in regards to what language you are using to communicate between the form and access.

buddylee17 216 Practically a Master Poster
UPDATE Table SET HomePhone=MobilePhone WHERE (HomePhone) Is null;
buddylee17 216 Practically a Master Poster

Use SELECT DISTINCT in the query. This will discard duplicate rows. It is better to set constraints like mentioned above to eliminate duplicates from being inserted though.

buddylee17 216 Practically a Master Poster

You have to call session_start() before anything is outputted to the browser. Try calling session_start right after the opening php tags just to make sure.

buddylee17 216 Practically a Master Poster

If you have a common style sheet that's used throughout the site, it's not hard to center your pages. Absolute position the body. Add the following attributes to the body:

body{
position:absolute;
left:25%;
top:5px;
}

You'll have to play around with the left amount until things look like you want them to. I used a percentage instead of a fixed amount because of the wide variety of monitor resolutions used these days. The top is optional but, you may find that you'd like a little more or less space from the top than what the browser gives by default.
Hope this helps.

buddylee17 216 Practically a Master Poster

It's not pretty nor creative but is Valid XHTML 1.0 Strict:

<ol>
<li style="font-size:24px">
<span style="font-size:12px">This text is 12px. The bullet number is 24px.</span>
</li>
<li>
<span style="font-size:12px">This text is 12px. The bullet number is 12px.</span>
</li>
</ol>
buddylee17 216 Practically a Master Poster

If I go with CF and have the developer version, will it cost me anything?

From what I can tell on the Adobe site, as is anything Adobe, it's a 30 day free trial and then you pay! $1299 for the standard edition and $7499 for the enterprise edition. Unless you plan to host the site yourself, you'll find that your host choices are going to be limited and much higher priced than if you would have went with php. It's rare to find a host that doesn't support php. Also, there's not many resources for noobs. Compare the two forums on this site. 9 pages of CF posts versus 153 of PHP. I've never used CF for these reasons.

I agree that you should go to apachefriends.org and download the installer version of XAMPP. As soon as the download is complete, follow the install instructions. After installation is complete, open the xampp folder and double click apache_start. You now have a fully configured testing server up and running on your machine. Save your php files in the htdocs(root) folder and view the files by typing http://localhost/filename.php into the url.

What do you think the best way to learn the BIG PICTURE in all of this?

Start off with a two page form. Learn how to pass variables from the client back to the server. Here's a good tutorial to start with.
Read posts, ask questions, and utilize google. You'll have dynamic …

buddylee17 216 Practically a Master Poster

Yes, the session would work. Cookies would work as well. The code I posted was meant to build a basic understanding of passing variables from page to page.

buddylee17 216 Practically a Master Poster

Basically, how it works is you use a form on each page.:
page1.php

<form method="post" action="page2.php">
First Name:<input type="text" name="first_name" /><br>
Last Name:<input type="text" name="last_name"  /><br>
<input type="submit" name="submit" />
</form>

Then in page 2, you echo the variables from page 1 into hidden fields in the form for use on page 3:
page2.php

<?php
$fname=$_POST['first_name'];
$lname=$_POST['last_name'];
?>
<html>
<head></head>
<body>
<form method="post" action="page3.php">
<input type="hidden" name="first_name" value="<?php echo $fname;?>" />
<input type="hidden" name="last_name" value="<?php echo $lname;?>" />
Education:<input type="text" name="education" /><br>
School:<input type="text" name="school" /><br>
<input type="submit" name="submit" />
</form>
</body>
</html>

The same goes for page 3:
page3.php

<?php
$fname=$_POST['first_name'];
$lname=$_POST['last_name'];
$education=$_POST['education'];
$school=$_POST['school'];
?>
<html>
<head></head>
<body>
<form method="post" action="page4.php">
<input type="hidden" name="first_name" value="<?php echo $fname;?>" />
<input type="hidden" name="last_name" value="<?php echo $lname;?>" />
<input type="hidden" name="education" value="<?php echo $education;?>" />
<input type="hidden" name="school" value="<?php echo $school;?>" />
Experience:<input type="text" name="experience" /><br>
<input type="submit" name="submit" />
</form>
</body>
</html>

Now, all the variables from all 3 pages are posted to page 4.
Hope this helps

buddylee17 216 Practically a Master Poster

You have to find a way to evaluate each checkbox. I believe something like this would work.

<script type="text/javascript">
function checkCheckBoxes(){
	var checkSelected = false;
	for (i = 0;  i < document.Dates.checkbox.length;  i++)
	{
		if (document.Dates.checkbox[i].checked){
		checkSelected = true;
		}
		if (!checkSelected)
		{
		alert('You didn\'t choose any of the checkboxes!');
		return false;
		}
	}
}
</script>
buddylee17 216 Practically a Master Poster

Do your php at the top, before the doctype and html tags. The server doesn't care where you put the php. It just reads the script top to bottom. Put all the php that you can before the html. That way all you have to do in the html body is echo or print variables.

buddylee17 216 Practically a Master Poster

You're performing the query on line 3 but you don't select a database until line 9. You must select the db before you perform the query.

buddylee17 216 Practically a Master Poster

What's the code look like? If you've never linked to an external site, then you need to understand that you have to add http:// to the beginning of the url: <a href="http://www.forums.myboard.com">link</a>

buddylee17 216 Practically a Master Poster

No, don't edit anything except for display_date on line 2 and link location in line 10. The rest of the script is how JavaScript reads the current date from your machine.

buddylee17 216 Practically a Master Poster

JavaScript will do this. HTML can't make decisions based on the date. A Server side script would be even better because the user can't disable it the way they can JavaScript. Anyway, here you go:

<script type="text/javascript">
var display_date=new Date('04/04/2008');//this will be the date the link starts displaying
var currentTime = new Date();
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();
//get all dates in the same format
var current_date = new Date(month +'/' + day + '/' + year);
if(current_date>=display_date){
document.write('<a href="newlink.html">new link</a>');
}
</script>
buddylee17 216 Practically a Master Poster

readonly="readonly"

buddylee17 216 Practically a Master Poster

That is a great resolution for a visitor/user but, terrible for a web designer/developer. Assume the user has the least technology available. Scale the resolution down and retest. I would also recommend keeping in mind that Windows XP is the predominant (largely) operating system on the planet. It ships with IE6 so that's one browser that I would test on. Yes, I think IE7 both looks better and has better security, but it's not my opinion that matters, it's the users'. You can't force a gun down their throat to download a different or updated browser. Google IE6 standalone to find a good, fast downloading, and low processor intensive browser. I think you're going to find that the web has changed a bit since you left it. XHTML is slowly replacing HTML, but it's not gonna be that big of a step for you. We don't use capital letters or the font tag anymore. Other than that, not much has changed. You'll find that IE is not the most standards compliant browser, but you'll learn workarounds. You'll also learn that Firefox is almost always right, even though most of the noobs claim that their site works in IE but not Firefox (mainly because their code is deprecated or incorrect and IE has fixed it for them). The main thing to remember is don't give up. In a couple of hours you'll have your page looking great in every browser, and you'll be glad you took the minute to …

buddylee17 216 Practically a Master Poster

In main.css, try using a pixel width of 800px or so instead of 100% for the middle class.

buddylee17 216 Practically a Master Poster

You'll probably get a better response by posting this in the JavaScript/DHTML/AJAX forum.

buddylee17 216 Practically a Master Poster

Assuming a windows IIS server, to connect php to access, you'll need to set up an odbc and DSN on IIS. Here's a link to the tutorial.

buddylee17 216 Practically a Master Poster

No, you'll need a server side script for that. PHP has a mail function that's pretty easy to use. Here's a link to an easy to follow tutorial on how to do it.

buddylee17 216 Practically a Master Poster

An easy way to validate is to install the free web developer add-on in Firefox. Once installed, you can simply press Ctrl+Shift+A and the W3C validator will open in a new tab and validate the page that you were on.

With dreamweaver you start a new document, it always has meta tags, etc.
Anyone explain for what purpose?

META tags are HTML Tags that describe the contents of a web page. The primary purpose of Meta tags is to help catalog and categorize the contents of a web page. If your pages do not contain them then they may not get categorized the way you‘d like by the search engines.

So there isnt any program that can validate all your code for cross browsing (ie/firefox)?

Yes, although Dreamweaver can spot things that won't work in different browsers, you just have to follow Midi's advice. Here's a link to answer the question, Why does my site look different in IE than in Firefox?

OmniX commented: Thanks for your comprehensive response! +1
buddylee17 216 Practically a Master Poster

The php function can be called, but you'll need some javascript to send and recieve the xmlhttprequest (AJAX).

buddylee17 216 Practically a Master Poster

Have a look at this. It explains exactly why things look different depending on the browser and what you can do to make things look more cross browser consistent.

buddylee17 216 Practically a Master Poster

You have to upload the images to the server. Notice how Ohio.gif works but the other 2 images dont. Here's the path to Ohio.gif :
http://www.ohiochirorelief.com/ohio.gif
You need to put the 2 Dr.Rex images into the same folder that ohio.gif is in, on the server.

buddylee17 216 Practically a Master Poster

This is pretty common for programmers new to php. We'll need to see more code. Are you using echo or print before the header? Here's an article about the error.

buddylee17 216 Practically a Master Poster

I had a similar problem integrating paypal. It was a security feature problem. I changed my allowScriptAccess and allowNetworking param values and it fixed things. Here's what I set the values at:
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowNetworking" value="all" />

buddylee17 216 Practically a Master Poster

It all depends on what db you are trying to connect to and your current server configuration. Lucky for you, php is one of the most highly documented languages on the web. It even has its own "user manual" so to speak at php.net. Utilize google. There are numerous tutorials out there to connect to Access, Oracle 10g, MS SQL, MySQL...Also, to help you get started, there are ASP to PHP converters available. If you want to connect to MS SQL Server, you'll have to make sure your server is set up for it. Here are the requirements and some sample code.

buddylee17 216 Practically a Master Poster

Use loadVars. Here is some code from a login for a similar project.
I did it with ActionScript 2.0. What you need are three text boxes and a submit button.
The first two text boxes (email and password) will be input text type with instance names of email and password. The third text box should be dynamic text type with an instance name of status. Then in the actions panel of the submit button, put this:

on (release) {
status.text = "";//clearing status field for this attempt
serverFile="/login.php";
//creating two LoadVars objects, to send and receive variables
my_lv = new LoadVars();
result_lv = new LoadVars();
//Assign appropriate text boxes to LoadVars object
my_lv.email = email.text;
my_lv.password = password.text;
//Send the variables and Load the servers response
my_lv.sendAndLoad(serverFile, result_lv, "POST");
//event which is called when result_lv passed above, receives response from php page
result_lv.onLoad = function(success:Boolean) {
	if (success) {
               email.text = "";//clearing all fields
               password.text = "";
               status.text =result_lv ["serverResponse"]; //entering response to status field for display
             }
        }
}

Then in the php page, if the person gets logged in,

echo "&serverResponse=Authentication confirmed";

and if denied

echo "&serverResponse=Access denied";

I hope this helps.

buddylee17 216 Practically a Master Poster

Not sure I understand your situation. How about a redirect to the login if the session isn't valid?

if(empty($_SESSION['username']) || empty($_SESSION['password'])){
header ('Location:login.php?please_login');
}
buddylee17 216 Practically a Master Poster

on lines 44 and 45 of questions.php

$sql = 'INSERT INTO questions(question1, question2, question3, question4, question5, username, password) VALUES ("'.$question1.'", "'.$question2.'", "'.$question3.'", "'.$question4.'", "'.$question5.'", "'.$username.'", "'.$password.'");';

Is this insert working? The reason I ask is because you have );'; at the end. Try getting rid of that extra semicolon and end it with this )';

$sql = 'INSERT INTO questions(question1, question2, question3, question4, question5, username, password) VALUES ("'.$question1.'", "'.$question2.'", "'.$question3.'", "'.$question4.'", "'.$question5.'", "'.$username.'", "'.$password.'")';
buddylee17 216 Practically a Master Poster

Are you surrounding it with single or double quotes?
If double, then $query_string1 shouldn't be escaped.

echo "<a href='{$_SERVER['PHP_SELF']}?pageno=1&query_string=$query_string1'>FIRST</a>";
buddylee17 216 Practically a Master Poster
if(empty($_POST['username'])){
echo"Please enter username";
}
if(empty($_POST['password'])){
echo"Please enter password";
}

Obviously, you could do a lot of other checks like verifying the number of characters in each field with strlen. I just listed what you asked. I would recommend that you take some basic actions against SQL injection. The function mysql_real_escape_string does a pretty good job. It should be put in after a connection to mysql has been established and before or during the query. Here is a link to the function's documentation.

mysql_real_escape_string(htmlspecialchars($_SESSION['username']));
mysql_real_escape_string(htmlspecialchars($_SESSION['password']));

If you don't do this, a user could put ' OR ''=' in the password field and the query would let a person login without a password.

buddylee17 216 Practically a Master Poster

Looks like you don't have a conditional to trigger the mail to be sent. Try replacing the last 24 lines of contact_process.php with this:

// If everything is okay, send the message
			if ($name && $email && $city && $state && $phone && $occupation && $reason && $interest && $timeframe && $comments)
			{
				echo "<br><p class='blackheader'>Thank you for your interest in our Caddy Card distributorship opportunity. Someone will be in contact with you shortly.<br>";
			$body = "The following has been submitted from the Caddy Card Biz website:\nName: $name\nEmail: $email\nCity: $city\nState: $state\nPhone: $phone\nOccupation: $occupation\nReason: $reason\nInterest: $interest\nTimeframe: $timeframe\nQuestions/Comments: $comments";
				mail ($to, $subject, $body, $headers);
			} else { // One	 form element was not filled out properly.
				echo "<p class='blackheader'>Please go back and fill out the form again.</p>";
			}
			?>
buddylee17 216 Practically a Master Poster

#
//If user only enter Bicycle Type
#
elseif (($brandC="") AND ($typeC!=="") AND ($styleC== "All") AND ($frameC== "") AND ($groupSetC== ""))

I do this occasionally. You are confusing the comparison operators. On line 39, where you have $brandC="", you're not comparing the string to empty, you're resetting the value to empty. If you want to check if empty, use $brandC =="". Also, $typeC !=="" should be $typeC !="". There are also similar problems on line 45 & 51.
Or better yet, use

elseif(empty($brandC) && !empty($typeC) && empty($frameC) && empty($groupSetC))

I could be wrong, but, I believe it will parse a bit faster.

buddylee17 216 Practically a Master Poster

Ah, the gdform. I tried for over a week to send mail through GoDaddy. My client had the small to medium sized business plan. I would test the code on different servers and it would work, but when I'd move it onto the GoDaddy machine, it would fail. I wound up making a page using php_info() and found that mail, along with many other functions were disabled on the server. If you haven't yet done so, create a php_info page and have a look.

buddylee17 216 Practically a Master Poster

You must include session_start(); at the top of every page that you plan to use session variables. This may or may not be the problem, but it is easy to forget to do.

buddylee17 216 Practically a Master Poster

External css should not contain style tags (<style type = "text/css"></style>) at the beginning and end like they do when putting them inline. If the styles aren't showing up, they probably aren't in the same place that you are pointing the link href to. Try typing the absolute address of your css file into the browser and view it to make sure it's there. Then copy and paste the same url into the href. i.e.<link href="http://www.insanecricket.com/sleek/styles.css" rel="stylesheet" type="text/css" />

peter_budo commented: Good spoting +7