buddylee17 216 Practically a Master Poster

You could use JavaScript to detect the user agent then write a link prefix variable for each link. A much better solution would be to install a testing server (WAMP, XAMPP, IIS) on your machine. This way you can access your site by typing http://localhost into the url instead of file:///C:/Documents%20and%20Settings/My%20Documents/index.htm

buddylee17 216 Practically a Master Poster

Enter your question in the C++ forum. This forum is for HTML and CSS only.

buddylee17 216 Practically a Master Poster

Validate the page with the W3C. You could have an open element or an error causing this to not work.

Just to see what it should do, create a blank html page and put only the following into the body of the document:

<div style="position:absolute; bottom:40px">
This div should be 40px from the bottom.
</div>
<div style="position:absolute; bottom:20px">
This div should be 20px from the bottom.
</div>
<div style="position:absolute; bottom:0">
This div should be at the bottom of the page.
</div>
buddylee17 216 Practically a Master Poster

Validate the page with the W3C. I'm sure you'll find several errors.

buddylee17 216 Practically a Master Poster

Yes. Use absolute positioning and set bottom attribute to 20px.

position:absolute;
bottom:20px;
buddylee17 216 Practically a Master Poster

Have you got a coldfusion server installed. If so, which version?

buddylee17 216 Practically a Master Poster

I use the class.phpmailer.php. It will add all the headers for you and will work for both plain text and html email. It works for hotmail, yahoo, gmail, and many others.

buddylee17 216 Practically a Master Poster

This may or may not be the problem, but it is not valid:

<img src="images/gdc1.jpg" alt="Garden Design Company" width="300" height="185" float="right" />

should be:

<img src="images/gdc1.jpg" alt="Garden Design Company" width="300" height="185" style="float:right" />
buddylee17 216 Practically a Master Poster

Is the banner an image or Flash?

buddylee17 216 Practically a Master Poster

You have to understand that each browser sets a certain amount of white space between each element. Please read no margin for error. You'll have to reassign the problem elements to have 0 margin and padding. Also remember that 0px = 0 pizzas = 0 cigarettes. 0=0, regardless of what it represents, so just keep it simple. Just make it 0.

buddylee17 216 Practically a Master Poster

It sounds like you need a JavaScript onclick event.

buddylee17 216 Practically a Master Poster

Keep the table element out of the loop. As long as <table> and </table> aren't being repeated in the loop, your not going to have multiple tables.

buddylee17 216 Practically a Master Poster

If you are wanting the area code to enter into the textbox after a click, use the onclick event (JavaScript).

buddylee17 216 Practically a Master Poster

Are you accessing the file through localhost?

enzogoy commented: Solve my problem +1
scru commented: Ha, i never thought of that +4
buddylee17 216 Practically a Master Poster

In the form element, add the attribute target="_top".

<form action="process.php" target="_top">

Have a look at all of the possible target values:
http://www.w3schools.com/TAGS/att_form_target.asp

darkagn commented: good tip and link, very useful info :) +3
buddylee17 216 Practically a Master Poster

Think of a class as a class in school. The class contains many students. Think of id as a unique student in the class.

Use a class when you have many elements that need the same style applied.

Use an id when the element will only be used once on the page. Things like a banner, navigation bar, or footer are commonly only used once per page.

buddylee17 216 Practically a Master Poster

Download xampp or wamp. They are free, small downloads, that require no to minimum configuration changes.

Here's a comparison of the two from oracle.com:
http://www.oracle.com/technology/pub/columns/hull_php2.html

buddylee17 216 Practically a Master Poster

What does this have to do with php? You have no php in your code at all.

You might want to consider adding it in though. No form should be submitted without server side validation. Using JavaScript for validation is kind of like putting a plastic lock on your door.

buddylee17 216 Practically a Master Poster

Hotmail will scramble anything that is surrounded by quotes in html, so remove all single and double quotes from the email. In other words:

<a href="http://www.google.com">

would need to be

<a href=http://www.google.com>
buddylee17 216 Practically a Master Poster

I do both, and can tell you first hand that the tiny amount of time you save in development is going to be a very small drop in the bucket compared to the overhead costs of licensing and setting up a cf supported server. Yes, cf has many built in functions but like said before, most php developers build libraries to take care of what they need and don't add the bs they don't want (unlike cf where everything is there, bogging down the server, regardless of whether you actually need it).

Apache's server is the most popular server in the world. Not because it is free. It's because it works and has almost no downtime. It's also designed with PHP in mind.

Also like previously mentioned, it's very tough to find cf support. Go look in the cf forum. The most previous post was made two days ago. The one before that was over a week ago. Now compare that to the PHP forum.

buddylee17 216 Practically a Master Poster

I don't see it either.

What I would do though:
Scale down the header or just get rid of it. It takes up over half the page! Also, maybe a white background.
Just my opinion

buddylee17 216 Practically a Master Poster

I dont know anything about SQL server and so I am afraid all my pages and connections to database would be totally messed up or ruined.

Make a backup! (Copy, paste, rename "backup.mdb")

As far as the migration goes, use the Microsoft Upsizing Wizard or SQL Server Migration for Access .

buddylee17 216 Practically a Master Poster

Not a big fan of google I take it.

Just a wild guess, http://www.microsoft.com/expression/

Also, if you are currently a student in college, you can download a fully licensed copy free from dreamspark site.

buddylee17 216 Practically a Master Poster

I'd guess that it would be http://localhost/phpmyadmin

buddylee17 216 Practically a Master Poster

Post the code and error messages.

buddylee17 216 Practically a Master Poster

Make the exe in Visual Studio. Access is a desktop database platform, not a software developing platform.

buddylee17 216 Practically a Master Poster

Whether or not the background image is printed is up to the browser, nothing you can do with code. It's a setting in the browser which decides whether or not to send background images to the printer. In IE7, click Tools->Internet Options->Advanced. Click the check box under Printing for print background colors and images. It's probably something similar in other browsers. I have many clients require this and they all use IE so I'm not sure about the others.

buddylee17 216 Practically a Master Poster

www.w3schools.com will hold your hand through every step. By the time you're done there, you won't need any of the other links mentioned.

buddylee17 216 Practically a Master Poster

If it makes it to the browser, it's in the cache (on the users machine). Everything is accessible to the user by this point. PHP does the same thing that every other server script does, it parses the code from the web server and sends the client HTML and JavaScript. These are the only things that the browser knows how to interpret (except for vbscript, which only works in IE). There is not a way to prevent the user from stealing HTML.

buddylee17 216 Practically a Master Poster

You can use extract.

@extract($_POST);

This will convert all of your form names to variables.
You can then access each variable by using the following:

foreach($_POST as $key => $value){
echo "$key=$value<br>";
}

In this code, $key is the variable name. $value is the value of the variable submitted from the form.
Obviously, you'll need to add in some major validation.

Shanti C commented: very smart.... +2
buddylee17 216 Practically a Master Poster

All browsers apply a default stylesheet to your page. Unfortunately, they don't all use the same stylesheet. Take a look at No Margin For Error, which explains why each browser displays the web page slightly different. The easiest way to get around this is to reset your styles at the top of the stylesheet (especially margin and border). Then apply styles as normal.

buddylee17 216 Practically a Master Poster

If you'll add an index file to the folder, the directory files wont be listed. Obviously this is a short term solution to the problem. The better, long term solution, was already made by Xan.

buddylee17 216 Practically a Master Poster

SQL injection is an attack on the database. Basically, injectors take an educated guess about your query design and try to manipulate it. Let's take a look at the following login:

$query = "SELECT * FROM customers WHERE username = '$name' and password = '$password'";

$name and $password come from a form using input type='text'. Thus, anything can be typed into these fields. So, the injector types in ' OR 1' for each field. Let's substitute the variables and actually take a look at what gets sent to MySQL:

$query = "SELECT * FROM customers WHERE username = '' OR 1'' and password = '' OR 1''";

Adding ' OR 1' to the variable will a.) keep the query from failing due to parse errors and b.)make the query default to true, giving the user access to anything in the db that he/she is capable of getting to.

buddylee17 216 Practically a Master Poster

To get the form validation script to work, replace your current form tag with the following (Make sure you click "Toggle Plain Text" before copying):

<form action="formprocess.php" method="post" name="form1" id="form1" onsubmit="MM_validateForm('realname','','R','ingamename','','R','age','','RinRange4:99','steamid','','R','email','','RisEmail','paypalemail','','RisEmail');return document.MM_returnValue">
buddylee17 216 Practically a Master Poster

Ah silly me! lol You were right! lol

However, when I click on the photo now it opens up a new window with the red cross box. I checked the properties of the red cross box (which should be the photo) and the file path seems to be correct!

http://www.cyberpetworld.com/members/CIMG0811.JPG

Your members folder that you are pointing to doesn't even have CIMGO811.jpg, or any other jpg's for that matter. Based on your previous posts code, I think you mean http://www.cyberpetworld.com/photos/CIMG0811.JPG Any time you get a box with a red cross in it, it means you are not pointing to the correct file position in your code. You'll have to learn how to troubleshoot this kind of stuff.

I think this is what you are wanting to do with the image link:

while($info = mysql_fetch_array( $data ))
{ 
echo"
<a href='fullview.php?img=photos/".$info['photo']."&amp;name=".$info['name']."' >
<img src='/photos/".$info['photo']."' width='200'><br>
<b>Description:</b>".$info['name']."<p> <hr>
<br />(Click image to enlarge)
</a>";
}
buddylee17 216 Practically a Master Poster
buddylee17 216 Practically a Master Poster

A 404 error means that the page isn't where you are pointing in the link. Make sure that fullview.php is in the same directory as the current script on the server. Also, are you referring to the same window as to open in a new tab?

buddylee17 216 Practically a Master Poster

Try:

while($info = mysql_fetch_array( $data ))
{ 
echo"
<a onclick= 'window.open(\"fullview.php?img=".$info['photo']."&amp;name=".$info['name']."\",\"\", \"width=500, height=400,location=no, menubar=no, status=no,toolbar=no, scrollbars=no, resizable=no\"); return false' style=\"color:#000000; text-decoration:none; font-size:11px; text-align:center\" >
<img src='/photos/".$info['photo']."' width='200'><br>
<b>Description:</b>".$info['name']."<p> <hr>
<br />(Click image to enlarge)
</a>";
}
buddylee17 216 Practically a Master Poster

Pass the image variables through the url to the new window. Replace your current code with the following:

<a onclick="window.open('fullview.php?img=<?php echo $info['photo'];?>&amp;name=<?php echo $info['name'];?>','', 'width=500, height=400, location=no, menubar=no, status=no,toolbar=no, scrollbars=no, resizable=no'); return false" style="color:#000000; text-decoration:none; font-size:11px; text-align:center" >
<img src='/photos/<?php echo $info['photo'];?>' width='200'><br>
<b>Description:</b> <?php echo $info['name'];?><p> <hr>
<br />(Click image to enlarge)
</a>

You'll also need to create a page called fullview.php with the following:

<?php
$image=$_GET['img'];
$name=$_GET['name'];
?>
<img src="<?php echo $image;?>" width="450" >
<br>
<?php echo $name;?>

That's it. No need to create a separate page for every picture.

buddylee17 216 Practically a Master Poster

No, lower the quality of the image with image editing software like Photoshop or Paint Shop Pro or convert it to gif or png. Every image on your page has to be downloaded from your web server to the user when the page loads. The bigger the pic, the longer it will take to download and the longer it will take the page to load.

buddylee17 216 Practically a Master Poster

Im guessing it involves quite alot of coding?

Not really. Do you want the image to expand on the page or do you want a new window to open with the picture in it.?

buddylee17 216 Practically a Master Poster

Yes, just load the variable into http's GET, POST, or REQUEST arrays. It's how AJAX applications communicate with the server.

buddylee17 216 Practically a Master Poster
echo "<img src='/photos/".$info['photo']."' width='200'><br>"; 
echo "<b>Description:</b> ".$info['name']."<p> <hr>" ;
justted commented: Very very Helpful! Thankyou :) +1
buddylee17 216 Practically a Master Poster

Here is how to do it with CS3 Dreamweaver. I'm not sure if the wording will be exact for DW8 but it should be close.
If you haven't done so in dreamweaver, create a new site. (Site->New Site).
Click Advanced tab.
Under Local Info,
give it a name of localhost or something that you will know as the local testing server. Set the local root folder to your htdocs folder. (Possibly C:\EasyPHP\htdocs\)
Under Testing Server,
set the server model to PHP MySQL. Set the access to Local/Network. Set the testing server folder to your htdocs folder (Once again, Possibly C:\EasyPHP\htdocs\). Set the Url prefix to http://localhost/. Click Ok. Click Done.
When you want to test a script, just click Preview in Firefox or IE7 or whatever browser you want to test in. You'll have to make sure that Apache and MySQL are running prior to testing. This can easily be checked by looking in the Task Manager under processes.
Connecting to the database in dreamweaver is just like connecting to it any other way.

$DB_Server = "localhost";//your MySQL Server 
$DB_Username = "root";	//your MySQL User Name 
$DB_Password = "";	//your MySQL Password. Empty unless you've set one.
//create MySQL connection
$Connect = @mysql_connect($DB_Server, $DB_Username, $DB_Password)
	or die("Couldn't connect to MySQL" );

You should also be able to work directly with your dbs using phpmyadmin. Just type http://localhost/phpmyadmin/ into the url of your browser.

buddylee17 216 Practically a Master Poster

Make sure all your form elements have the same name value with an empty bracket.
ie

<input type="checkbox" name="checked[]" value="dog" />Dog
<br />
<input type="checkbox" name="checked[]" value="cat" />Cat

Then, in your processing script, just loop through the checkbox array and do what you need to inside the loop.

foreach($_POST['checked'] as $value){
//do whatever here. I'll just print the values but you can update the db, push into an array, or whatever here.
print $value;
print "<br />";
}
buddylee17 216 Practically a Master Poster

Not too sure about this one. Remember, php executes from the server. You'll want a script that executes from the browser to perform a print. The basic idea is:

<input type="button" value="Print" onclick="window.print()" />
buddylee17 216 Practically a Master Poster

You could also use Google Analytics. It will give you a hit count, average time on site, keywords used to find the site, traffic sources (referring site), breakdown of stats of which search engine was used to find your site, pages per visit, a global map view of where the hits came from, individual page stats, and more!

buddylee17 216 Practically a Master Poster

motter, in your iframe, example2.php,

<BODY <bgcolor="1F1F1F">

should be

<body bgcolor="1F1F1F">

Also, you should validate your code with W3C if you expect to have a cross browser compliant site.

buddylee17 216 Practically a Master Poster

You could write a batch file to copy the db into a backup folder. Then use Scheduled Tasks to run the script daily or weekly or how ever often you need it to run.

buddylee17 216 Practically a Master Poster

I agree with keith. What happens when you have 100 users? You are going to have 100 user tables with one row of data in each. Bad design. All of this could be done with 1-3 properly normalized tables.