PDA

View Full Version : Canned mail form and preloading images


queticon
12-27-1998, 10:10 PM
Hello group I have a dual question for the forum. If someone could help me with these I would greatly appreciate it. So here it goes.

1. How can I get images to load when the page is loaded. like on my main page I have blue buttons a javascript calls when the mouseover and mouseout is preformed, but these images are being called from the server each time and not staying in cache. This means that it takes longer for the color change to happen the first time. Anyone have a solution. Please look at the source.
www.trustmarkleasing.com

2. I have a form that for the time being is mailing to one of my email addresses. I am trying to make it where alot of the fields are required. I used the following tag
<input type=hidden name="required" value="name and so on">

Can someone take a look here and tell me what I am doing wrong?
www.trustmarkleasing.com/lease/app/leaseapp.html

Thank You Everyone,



------------------
Dan Garwood
Trustmark Associates, Inc.
Senior Leasing Officer
www.trustmarkleasing.com
dgarwood@trustmarkleasing.com

Deb
12-27-1998, 10:22 PM
On number 1.. I'm not really sure.. but I do know that lil script I put up while practicing PHP3 setsup a nice onmouseover script... and I've not had any problems with it.. check it out.. http://www.midnightmerchants.com/php/hover.php

For number 2.. take a closer look at the hidden string...
<INPUT TYPE=hidden name"required" value="name,email,Company .....

Notice that you have no name="required"

the missing "=" is the problem.

Hope this helps
Deb

------------------
Unlocking the Power of the Internet!
www.FutureQuest.net (http://www.FutureQuest.net)

queticon
12-27-1998, 10:30 PM
Thank you Deb. Sometimes it takes someone else looking from a far to see the smallest typo. If it would of been a *OUCH*, nevermind it just got me.

And as for the hover thank you. I will look at that in just a few minutes.



------------------
Dan Garwood
Trustmark Associates, Inc.
Senior Leasing Officer
www.trustmarkleasing.com
dgarwood@trustmarkleasing.com

queticon
12-28-1998, 12:13 AM
Deb,

is there a way to have my HTML document call on a php3 doc? like if I put the functions for the actual script in a php3 document and had my html document call it up or is that to difficult?



------------------
Dan Garwood
Trustmark Associates, Inc.
Senior Leasing Officer
www.trustmarkleasing.com
dgarwood@trustmarkleasing.com

Deb
12-28-1998, 12:24 AM
I'm not quite sure what you mean?

As in put PHP script inside a .html file? I don't *think* you can do that..

But you can put HTML inside a php file..

I'm just not sure I'm following your question correctly...

Deb

queticon
12-28-1998, 01:12 AM
deb,

the canned php3 script you refered to above. you took that script just like they made it and it worked? right? Or did you have to do a little tweaking to make it functional?

------------------
Dan Garwood
Trustmark Associates, Inc.
Senior Leasing Officer
www.trustmarkleasing.com
dgarwood@trustmarkleasing.com

Deb
12-28-1998, 01:24 AM
Took it just like they made it http://www.aota.net/ubb/wink.gif

(did a TINY bit of tweeking.. removed some extra spaces, and changed paths to images.. mainly cosmetic.. the script itself works just fine with a copy & paste)

Deb

queticon
12-28-1998, 01:31 AM
well I will tell you what I removed some spaces and change a few pointers of images and I cant get it to work....

take a look trustmarkleasing/storage/template1.phtml



------------------
Dan Garwood
Trustmark Associates, Inc.
Senior Leasing Officer
www.trustmarkleasing.com
dgarwood@trustmarkleasing.com

Deb
12-28-1998, 02:05 AM
Ok, first... the code used to create the javascript templates is done via PHP.. but the resulting code it hands out to the visitors is just javascript.. so you do not need to name the page phtml to add the code to your site....

As far as the script itself in your menu bar.. it is working but the paths to the images are not... I would just check to make sure they are named correctly.. for example in one of them it is looking for
http://trustmarkleasing.com/storage/b-lease-w.gif but the image is actually in your /images/ directory rather then the /storage/ directory.

So it is working... it's just the wrong path was input for the images themselves.

How about I put on a third pot of coffee http://www.aota.net/ubb/smile.gif

Deb
(feeling the pain of MySQL tonight)