Welcome Guest ( Log In | Join )

Discover the best free computer help!
Learn more about Geeks to Go by taking the tour. Want to ask a question, reply to a topic, or remove all advertising? It's easy, fast and free. Join today!
Spyware, virus, trojan, fake security or privacy alerts? Please start with our malware cleaning guide.
     
 
Reply to this topicStart new topic
Any suggestions suggestions on my site?, Need help on layers and email php
jatangan
post Nov 21 2005, 05:28 PM
Post #1


Member
**
Posts: 10
OS: xp



This is my first site, it was a project given to me by my work. I am using dreamweaver to build the site and used nested layers.
I am having trouble centering the layers on the page. I used a 3rd party plugin but it doesn't seem to do the job right in browsers other than IE. It actually gets annoying when you click on the links and it lags when adjusting to the center.
Also I have posted earlier about emaling from a page using php and was wondering if it will work? I tried sending it and i got an error.
Any suggestions would help especially on these problems and faster page loading. (but go easy on me im a beginner!) confused1.gif
Go to the top of the page
 
+Quote Post
Paradox924X
post Nov 21 2005, 05:42 PM
Post #2


Member
***
Posts: 208
From: Pompano Beach, Florida
OS: Windows XP Home SP2, Windows 98



Yeah... I see your issue.. it takes a while for it to move from left ot center in IE and it won't even center in Safari, nor Firefox... You have to have PHP installed on your computer... you do know that, right? Just get that installed if you want the PHP to work.. I don't know about how to resolve the layers and frames issue.. my best advice would be to redo the entire website yourself... not using any 3rd party plugins... maybe even get a code validator.. google that.. I don't have the link to one right now..
Go to the top of the page
 
+Quote Post
Neil Jones
post Nov 21 2005, 05:47 PM
Post #3


Member 5k
********
Posts: 5,648
From: UK
OS: Windows XP Home Edition Service Pack 3



Ooh this has got potential. It's very nice.

Those buttons at the top I would suggest putting them in as part of the rest of the design rather than using a frameset. In Dreamweaver you can do this by basically havnig one huge table that houses everything.

You should drop dummy text in instead of just having a load of empty boxes floating about. http://www.lipsum.com is the place to get some. This'll give you an idea of how it looks with real text, which is often a different result from empty boxes.

You seem to be using a lot of code to do very little. In fact it seems to me you're using a lot of layers just because you can. Try simplifying things a bit because when it gets complicated like you have that set up, it's hard to see the wood for the trees so you aren't able to see what's stopping it from doing what you want.
Go to the top of the page
 
+Quote Post
jatangan
post Nov 21 2005, 06:18 PM
Post #4


Member
**
Posts: 10
OS: xp



I would do it all in one table to center it but the layers dont stay still when resizing. The reason i have so many layers is so i can update easily. just drop in text when i need to and to drop in pictures and change colors of boxes when needed. The content is being worked on right now as we speak and about the table i would like to make 1 big table including the navigation bar but do i just keep copying the navigation for every page?
Go to the top of the page
 
+Quote Post
Paradox924X
post Nov 21 2005, 06:46 PM
Post #5


Member
***
Posts: 208
From: Pompano Beach, Florida
OS: Windows XP Home SP2, Windows 98



Yea, that's what I was gonna say.. don't use a frameset for your topnav.. I don't like it >.<
And you don't need to paste the code in on every page.. you can use a javascript file... like... paste it's code in a file called topmenu.js and put it in athe same directory as all your server pages...
Then, all you have to do on every page, is to insert this code:
CODE

<script type='text/javascript' src='topmenu.js'></script>


Place the code on each page wherever you want your navigation bar to show up at... and then.. whenever you need to change the navigation bar, just edit the topmenu.js file and it'll change accordingly on every page!
much easier than editing every page with the code... laughing.gif

I can't much help you with your layers and tables problem.. I'm not to good at that myself.. lol..

Good Luck! thumbsup.gif
Go to the top of the page
 
+Quote Post
jatangan
post Nov 21 2005, 06:52 PM
Post #6


Member
**
Posts: 10
OS: xp



sounds good! thanks for the idea.
Now can anyone help me with getting the layers fixed within the one large table.
because when i resize the window the layers move around! after that im all done with the site!
Go to the top of the page
 
+Quote Post
Paradox924X
post Nov 21 2005, 06:59 PM
Post #7


Member
***
Posts: 208
From: Pompano Beach, Florida
OS: Windows XP Home SP2, Windows 98



QUOTE(jatangan @ Nov 21 2005, 07:52 PM) [snapback]456047[/snapback]

sounds good! thanks for the idea.


You're Welcome~! biggrin.gif
Go to the top of the page
 
+Quote Post
lil_cat_luver
post Nov 21 2005, 09:40 PM
Post #8


Member
***
Posts: 296
From: Canada
OS: Windows XP



I don't understand why you need to use frames for this. Frames are really a hassel, never liked them.

I think one of the reason it's loading slow is because you have the frames code outside <body>, and it shouldn't be there. Everything that doesn't go in <head> should go in <body> unless it's a special code or something, which I don't think applies to this page.
Go to the top of the page
 
+Quote Post
Paradox924X
post Nov 22 2005, 06:38 AM
Post #9


Member
***
Posts: 208
From: Pompano Beach, Florida
OS: Windows XP Home SP2, Windows 98



Yeah, he's made his page far too compllicated for himself..

EDIT: I'm at school now and it does center on Safari~!

This post has been edited by Paradox924X: Nov 22 2005, 06:39 AM
Go to the top of the page
 
+Quote Post
jatangan
post Nov 22 2005, 02:57 PM
Post #10


Member
**
Posts: 10
OS: xp



K well I just figured everything out!! Thanks for everyones advise though!!

Here is the site... any other suggestions?

Go to the top of the page
 
+Quote Post
Paradox924X
post Nov 22 2005, 03:31 PM
Post #11


Member
***
Posts: 208
From: Pompano Beach, Florida
OS: Windows XP Home SP2, Windows 98



Yea, no problem.. but I have a few comments...
The page is finally centered in FireFox.. so that's good...
But also.. the mouseover effet for each of the buttons takes a while to work in FireFox AND IE.. I had to hold my mouse over each button for about 3 seconds before the mouseover came into effect... and if there are any pictures.. I can't see them in neither FireFox nor IE... I suppose that's only because you haven't uploaded them to your server yet...
But.. good job~! thumbsup.gif
Go to the top of the page
 
+Quote Post
jatangan
post Nov 22 2005, 04:19 PM
Post #12


Member
**
Posts: 10
OS: xp



Thanks again Paradox924X for assisting me in this webbuilding thing. Its very stressful with dealines and everything, you guys have been ALOT of help, and its been a very educational experience.
thumbsup.gif
With the site... The boxes that you see so far are just image place holders until the art guy can send me the pictures. I have someone else working on the text and thats why theres is no content at all.

Also, I also noticed that the buttons/links do take a LONG while to mouseover is there anyway i can optimize that? and is there a way to optimze each page/code so that it loads at a decent speed on peoples computers who are less fortunate and dont have broadband access? (no offense to any dialup people). Just trying to make the site as friendly and as inviting as possible!

Again thanks!
jatangan@comcast.net
biggrin.gif
Go to the top of the page
 
+Quote Post
Neil Jones
post Nov 22 2005, 06:07 PM
Post #13


Member 5k
********
Posts: 5,648
From: UK
OS: Windows XP Home Edition Service Pack 3



The rollover effect doesn't take long on a broadband connection, virtually instant on mine. Consider preloading the rollover images (Google is your friend) to cater for dial-up users.

And your code looks much cleaner now. Far easier to troubleshoot in the future.

Now you've took the frames out, that looks a lot better.
Go to the top of the page
 
+Quote Post
jatangan
post Nov 22 2005, 07:08 PM
Post #14


Member
**
Posts: 10
OS: xp



KOOL, well its almost there. Now my problem with PHP.

I get errors when submitting emails. Dont know why it would work heres the codes
here the HTML for my contacts page:

CODE

<html>
<head>
<title>New Reflections - Surgical Weight Loss Program</title>
<style type="text/css">
<!--
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style type="text/css">
<!--
body { text-align:center; color:#CCC; }
#wrapper {
    text-align:left;
    width:640;
    margin:0 auto;
    position:relative;
    height: 600;
}
#Layer1 {
    position:absolute;
    left:56px;
    top:1089px;
    width:161px;
    height:247px;
    z-index:1;
    overflow: hidden;
}
#Layer2 {
    position:absolute;
    width:160px;
    height:286px;
    z-index:1;
    left: 53px;
    top: 569px;
}
#Layer3 {
    position:absolute;
    left:49px;
    top:216px;
    width:540px;
    height:28px;
    z-index:2;
}
#Layer4 {
    position:absolute;
    left:53px;
    top:244px;
    width:535px;
    height:773px;
    z-index:4;
    overflow: visible;
}
.style1 {
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF;
}
.style2 {color: #A2ACF1}
.style3 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}
.style4 {
    color: #A2ACF1;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}
.style5 {
    color: #FFFFFF;
    font-weight: bold;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>

<body onLoad="MM_preloadImages('Home/Home_On.jpg','Home/Aboutus_on.jpg','Home/Contact_on.jpg','Home/Patients_on.jpg','Home/Treatment_on.jpg','Home/Forum_on.jpg','Home/espanol_on.jpg')" ...>
<div id="wrapper">
  <div id="Layer3" class="style1">General Information </div>
  <div id="Layer4">  
    <form name="form1" method="post" action="contact.php">
      <p align="left" class="style4"><span class="style3">Name
            <input name="firstname" type="text" id="firstname" size="25" />
        <input name="Lastname" type="text" id="Lastname" size="25" />
        <br />
        <br />
  Age
  <input name="age" type="text" id="age" size="5" maxlength="3" />
      DOB

  <input name="month" type="text" id="month" size="5" maxlength="2" />
  /
  
  <input name="day" type="text" id="day" size="5" maxlength="2" />
  /
  <input name="year" type="text" id="year" size="5" maxlength="4" />
      </span></p>
      <p class="style2"><span class="style3">Email Address
            <input name="email" type="text" id="email" />
      </span></p>
      <p class="style4">Phone Number: (
          <input name="area" type="text" id="area" size="5" maxlength="3" />
  )
  <input name="number11" type="text" id="number11" size="5" maxlength="3" />
  -
  <input name="number12" type="text" id="number12" size="6" maxlength="4" />
      </p>
      <p><span class="style4">Address:<br />
        
  <input name="addline1" type="text" id="addline1" size="25" />
  <input name="addline2" type="text" id="addline2" size="25" />
      </span></p>
      <p><span class="style4"> City
            <input name="city" type="text" id="city" size="25" />
  , State
  <input name="state" type="text" id="state" size="3" maxlength="2" />
  Zip
  <input name="zip" type="text" id="zip" size="10" maxlength="5" />
      </span></p>
      <p> </p>
      <p> </p>
      <p align="left" class="style4"><br>
        <br>        
        Height:
          <input name="feet" type="text" id="feet" size="5" maxlength="3" />
  ',
  <input name="inches" type="text" id="inches" size="5" maxlength="3" />
"     Weight:
  <input name="weight" type="text" id="weight" size="5" maxlength="3" />
      BMI:
  <input name="BMI" type="text" id="BMI" size="4" maxlength="2" />
      </p>
      <p align="left" class="style4">Name of Insured: 
          <input name="insfirst" type="text" id="insfirst" size="25" maxlength="25" />
          <input name="inslast" type="text" id="inslast" size="25" maxlength="25" />
      </p>
      <p align="left" class="style4">Name of Insurance:
          <input name="nameofins" type="text" id="nameofins" size="30" />
      </p>
      <p align="left" class="style4">Insurance Phone: (
          <input name="insarea" type="text" id="insarea" size="4" maxlength="3" />
  )
  <input name="ins1" type="text" id="ins1" size="4" maxlength="3" />
  -
  <input name="ins2" type="text" id="ins2" size="5" maxlength="4" />
      </p>
      <p align="left" class="style4">Group Number:
          <input name="groupnum" type="text" id="groupnum" size="40" />
      </p>
      <p align="left" class="style4">Employer of Insured:
          <input name="emplyer" type="text" id="emplyer" size="25" />
      </p>
      <p align="left"> <span class="style4">
        <label> Type of Insurance:
        <input type="radio" name="Type" value="HMO" />
  HMO</label>
        <label>
        <input type="radio" name="Type" value="PPO" />
  PPO</label>
      </span></p>
      <p align="left" class="style4">Do you understand this is a surgical Procedure?
          <label>
          <input type="radio" name="understand" value="Yes" />
  Yes</label>
          <label>
          <input type="radio" name="understand" value="NO" />
  No</label>
      </p>
      <p align="left"><span class="style4">Where did you hear about New Reflections?<br />
        </span><span class="style4">
        <select name="referral" size="1" id="referral">
          <option>Just Surfed In</option>
          <option selected="selected">Commercial</option>
          <option>Someone told me about it</option>
          <option>Magazine/Newspaper Article</option>
        </select>
        </span></p>
      <p align="left"> </p>
      <p align="left"> </p>
      <p align="left"> </p>
      <p align="left">
        <textarea name="comments" cols="74" rows="19.9" wrap="PHYSICAL" id="comments"></textarea>
      </p>
      <p align="center"><span class="style4">
        <input type="submit" name="Submit" value="Submit">
      </span></p>
    </form>
  </div>
  <body onLoad="MM_preloadImages('Home/Home_On.jpg','Home/Aboutus_on.jpg','Home/Contact_on.jpg','Home/Patients_on.jpg','Home/Treatment_on.jpg','Home/Forum_on.jpg','Home/espanol_on.jpg')">
<table width="640" height="412" border="0" align="center" cellpadding="0" cellspacing="0" id="Body">
  <tr>
    <td width="640" height="137" align="center" valign="bottom" background="Home/Banner.jpg"><a href="index.html"><img src="Home/Home_Off.jpg" name="home" width="91" height="26" border="0" id="home" onMouseOver="MM_swapImage('home','','Home/Home_On.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a><a href="about.html"><img src="Home/Aboutus_off.jpg" name="about" width="91" height="26" border="0" id="about" onMouseOver="MM_swapImage('about','','Home/Aboutus_on.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a><a href="contact.html"><img src="Home/Contact_off.jpg" name="contact" width="91" height="26" border="0" id="contact" onMouseOver="MM_swapImage('contact','','Home/Contact_on.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a><a href="patient.html"><img src="Home/Patients_off.jpg" name="patient" width="91" height="26" border="0" id="patient" onMouseOver="MM_swapImage('patient','','Home/Patients_on.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a><a href="treatment.html"><img src="Home/Treatment_off.jpg" name="treatment" width="91" height="26" border="0" id="treatment" onMouseOver="MM_swapImage('treatment','','Home/Treatment_on.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a><a href="forum.html"><img src="Home/Forum_off.jpg" name="forum" width="91" height="26" border="0" id="forum" onMouseOver="MM_swapImage('forum','','Home/Forum_on.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a><a href="espanol.html"><img src="Home/Espanol_off.jpg" name="espanol" width="91" height="26" border="0" id="espanol" onMouseOver="MM_swapImage('espanol','','Home/espanol_on.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a><img src="Home/navibar.jpg" name="bar" width="640" height="28" id="bar"></td>
  </tr>
  <tr>
    <td height="600" valign="top" background="bg.jpg"><div align="center">
      <p> </p>
      <p> </p>
      <p><img src="Contacts/candidatebx.jpg" width="550" height="311"></p>
      <p><br>
        <img src="Contacts/candidatebx.jpg" width="550" height="465"></p>
      <p> </p>
      <p><img src="Contacts/candidatebx.jpg" width="550" height="311"></p>
      <p><br>
      </p>
      <p><br>
          <br>
      </p>
    </div></td>
  </tr>
</table>
<div id="Layer1" style="position:absolute; width:532px; height:24px; z-index:7" class="style1">Comments</div>
<div id="Layer2" style="position:absolute; width:533px; height:34px; z-index:6" class="style1">Insurance/ Health Information </div>
</div>
<!-- /wrapper -->
</body>

</html>


heres the php page:
CODE
<?PHP



error_reporting(7);

# Validate: String

function check_string($value, $low, $high, $mode, $optional)
{
if ( (strlen($value) == 0) && ($optional === true) ) {
  return true;
} elseif ( (strlen($value) >= $low) && ($mode == 1) ) {
  return true;
} elseif ( (strlen($value) <= $high) && ($mode == 2) ) {
  return true;
} elseif ( (strlen($value) >= $low) && (strlen($value) <= $high) && ($mode == 3) ) {
  return true;
} else {
  return false;
}
}
#----------
# Validate: Email

function check_email($email, $optional)
{
if ( (strlen($email) == 0) && ($optional === true) ) {
  return true;
} elseif ( eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email) ) {
  return true;
} else {
  return false;
}
}

if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ClientIP = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ClientIP = $_SERVER['REMOTE_ADDR'];
}

# RegisterGlobals OFF

$FTGfirstname = $_POST['firstname'];
$FTGLastname = $_POST['Lastname'];
$FTGage = $_POST['age'];
$FTGmonth = $_POST['month'];
$FTGday = $_POST['day'];
$FTGyear = $_POST['year'];
$FTGemail = $_POST['email'];
$FTGarea = $_POST['area'];
$FTGnumber11 = $_POST['number11'];
$FTGnumber12 = $_POST['number12'];
$FTGaddline1 = $_POST['addline1'];
$FTGaddline2 = $_POST['addline2'];
$FTGcity = $_POST['city'];
$FTGstate = $_POST['state'];
$FTGzip = $_POST['zip'];
$FTGfeet = $_POST['feet'];
$FTGinches = $_POST['inches'];
$FTGweight = $_POST['weight'];
$FTGBMI = $_POST['BMI'];
$FTGinsfirst = $_POST['insfirst'];
$FTGinslast = $_POST['inslast'];
$FTGnameofins = $_POST['nameofins'];
$FTGinsarea = $_POST['insarea'];
$FTGins1 = $_POST['ins1'];
$FTGins2 = $_POST['ins2'];
$FTGgroupnum = $_POST['groupnum'];
$FTGemplyer = $_POST['emplyer'];
$FTGType = $_POST['Type'];
$FTGunderstand = $_POST['understand'];
$FTGreferral = $_POST['referral'];
$FTGcomments = $_POST['comments'];
$FTGmail = $_POST['mail'];
$FTGSubject = $_POST['Subject'];
$FTGSubmit = $_POST['Submit'];


if (get_magic_quotes_gpc) {
$FTGfirstname = stripslashes($FTGfirstname);
$FTGLastname = stripslashes($FTGLastname);
$FTGage = stripslashes($FTGage);
$FTGmonth = stripslashes($FTGmonth);
$FTGday = stripslashes($FTGday);
$FTGyear = stripslashes($FTGyear);
$FTGemail = stripslashes($FTGemail);
$FTGarea = stripslashes($FTGarea);
$FTGnumber11 = stripslashes($FTGnumber11);
$FTGnumber12 = stripslashes($FTGnumber12);
$FTGaddline1 = stripslashes($FTGaddline1);
$FTGaddline2 = stripslashes($FTGaddline2);
$FTGcity = stripslashes($FTGcity);
$FTGstate = stripslashes($FTGstate);
$FTGzip = stripslashes($FTGzip);
$FTGfeet = stripslashes($FTGfeet);
$FTGinches = stripslashes($FTGinches);
$FTGweight = stripslashes($FTGweight);
$FTGBMI = stripslashes($FTGBMI);
$FTGinsfirst = stripslashes($FTGinsfirst);
$FTGinslast = stripslashes($FTGinslast);
$FTGnameofins = stripslashes($FTGnameofins);
$FTGinsarea = stripslashes($FTGinsarea);
$FTGins1 = stripslashes($FTGins1);
$FTGins2 = stripslashes($FTGins2);
$FTGgroupnum = stripslashes($FTGgroupnum);
$FTGemplyer = stripslashes($FTGemplyer);
$FTGType = stripslashes($FTGType);
$FTGunderstand = stripslashes($FTGunderstand);
$FTGreferral = stripslashes($FTGreferral);
$FTGcomments = stripslashes($FTGcomments);
$FTGmail = stripslashes($FTGmail);
$FTGSubject = stripslashes($FTGSubject);
$FTGSubmit = stripslashes($FTGSubmit);
}
# Fields Validations

$validationFailed = false;

if ( (! check_string($FTGfirstname, 1, 0, 1, false))) {
$validationFailed = true;
}

if ( (! check_string($FTGLastname, 1, 0, 1, false))) {
$validationFailed = true;
}

if ( (! check_string($FTGage, 1, 0, 1, false))) {
$validationFailed = true;
}

if ( (! check_email($FTGemail, false))) {
$validationFailed = true;
}

if ( (! check_string($FTGarea, 1, 0, 1, false))) {
$validationFailed = true;
}

if ( (! check_string($FTGnumber11, 1, 0, 1, false))) {
$validationFailed = true;
}

if ( (! check_string($FTGnumber12, 1, 0, 1, false))) {
$validationFailed = true;
}

if ( (! check_string($FTGaddline1, 1, 0, 1, false))) {
$validationFailed = true;
}

if ( (! check_string($FTGcity, 1, 0, 1, false))) {
$validationFailed = true;
}

if ( (! check_string($FTGstate, 1, 0, 1, false))) {
$validationFailed = true;
}

if ( (! check_string($FTGzip, 1, 0, 1, false))) {
$validationFailed = true;
}

if ( (! check_string($FTGfeet, 1, 0, 1, false))) {
$validationFailed = true;
}

if ( (! check_string($FTGinches, 1, 0, 1, false))) {
$validationFailed = true;
}

if ( (! check_string($FTGweight, 1, 0, 1, false))) {
$validationFailed = true;
}

if ( (! check_string($FTGnameofins, 1, 0, 1, false))) {
$validationFailed = true;
}

if ( (! check_string($FTGunderstand, 1, 0, 1, false))) {
$validationFailed = true;
}

if ( (! check_string($FTGreferral, 1, 0, 1, false))) {
$validationFailed = true;
}

# Redirect user to the error page

if ($validationFailed == true) {

header("Location: error.html");
exit;

}

# Email to Form Owner

$emailTo = '"Jana Hanson" <surgicalwtloss@aol.com>';

$emailSubject = "New Reflections - Web Inquiriy";
$emailSubject = preg_replace('/[\x00-\x1F]/', '', $emailSubject);

$emailFrom = "$FTGemail";
$emailFrom = preg_replace('/[\x00-\x1F]/', '', $emailFrom);

$emailBody = "Name: $FTGfirstname $FTGLastname\n"
. "Age: $FTGage\n"
. "Date of Birth: $FTGday/$FTGmonth/$FTGyear\n"
. "Email address: $FTGemail\n"
. "Phone number: ($FTGarea)$FTGnumber11-$FTGnumber12\n"
. "Adress: \n"
. "$FTGaddline1\n"
. "$FTGaddline2\n"
. "$FTGcity, $FTGstate $FTGzip\n"
. "Height: $FTGfeet', $FTGinches\"\n"
. "Weight: $FTGweight lbs\n"
. "BMI: $FTGBMI\n"
. "Name of Insured: $FTGinsfirst $FTGinslast\n"
. "Name of Insurance: $FTGnameofins\n"
. "Insurance Phone number: ($FTGinsarea)$FTGins1-$FTGins2\n"
. "Group Number: $FTGgroupnum\n"
. "Employer of Insured: $FTGemplyer\n"
. "Type of insurance: $FTGType\n"
. "Surgical Procedure?: $FTGunderstand\n"
. "Referral: $FTGreferral\n"
. "\n"
. "\n"
. "Comments: $FTGcomments\n"
. "\n"
. "Date: " . date('m/d/y') . "\n"
. "Time: " . date('h:i:s A') . "\n"
. "";

$emailHeader = "From: $emailFrom\n"
. "Reply-To: $emailFrom\n"
. "MIME-Version: 1.0\n"
. "Content-type: text/plain; charset=\"ISO-8859-1\"\n"
. "Content-transfer-encoding: quoted-printable\n";

mail($emailTo, $emailSubject, $emailBody, $emailHeader);

# Redirect user to success page

header("Location: success.html");
exit;

# End of PHP script
?>


heres the linke to the site NewReflections

What the heck is going on! its not working????
Go to the top of the page
 
+Quote Post
Paradox924X
post Nov 22 2005, 07:14 PM
Post #15


Member
***
Posts: 208
From: Pompano Beach, Florida
OS: Windows XP Home SP2, Windows 98



Yea, image pre-loading is the way to go..
for the php bit.. I can't help you there... I'm not too good at php myself... I have absolutely no idea why that won't work.. so you'll have to wait for professional help..
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies / Views Topic Information
No New Posts