Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by Sarah

  1. Did we ever get to a conclusion about why some email addresses do not accept the emails from the PHP mail() function? I am currently having this problem and ripping my hair out trying to find out between like 3 different places why the emails are not being sent through.
  2. Please look at www.jo-danmotors.com for an example of how I would like this to print.
  3. Hi, thanks for the reply. Hmm, so what you are saying is open the first table row, then for each.. ><td> <table> <tr> <td>Car $i</td> </tr> <tr> <td>$model</td> </tr> <tr> <td>Stock $stock</td> </tr> <tr> <td>Price: $price</td> </tr> </table> </td> I see what you are saying, just keep adding <td>'s.. I know that it would get really wide, I would like to keep it at 2 cars per line. I guess to fix that I would assume I would have to just write some code that increases a counter after every subtable is printed and then have a snippet that asks 'if the counter is less than the total number of cars in the select statement and if there has been two subtables already printed, then create a new row and add the subtable there.' Do you think that would work?
  4. Hello everyone. I am stuck on a logic problem. I am trying to print out data from a database in a horizontal table format, not vertical, and I'm just not getting a way to do it! For example, say theres a used car database. I have no problems using a while loop and printing the cars like this : >Car #1 1999 Honda CR-V Stock# 123 Price 4999 Car #2 2000 Honda Civic Stock #464 Price 5000 But how do I go about printing the cars in a horizontal format like this, with different record information in the same row? >Car #1 Car #2 1999 Honda CR-V 2000 Honda Civic Stock 123 Stock 464 Price 4999 Price 5000 I've tried using for loops, while loops, and arrays. But I can't figure out how to access the different fields in order to print side by side in a table! Am I missing something? Thanks in advance for your help.
  5. Does anyone see where the error is? Or should I try changing the coordinates?
  6. Andy- Thanks for the reply. However, I'm not understanding where the error is. The submenu coordinates appear the same. They were unchanged. The only thing that I have changing from one page to the next is the 'swap image' behavior. If you are on the 'specials' page, then it should show up as in the 'over' state and not swap the image, which is working fine.
  7. Hello everyone and happy new year! I am making a site using Dreamweaver, using Fireworks for my graphics. I made a navigational bar with some pop-up menus (pop-up maker built into Fireworks), but for some reason my submenus change location! Go here to see the page and read my notes below: Nav Bar Example This nav bar is simple. There are 6 links, Showroom,Store,Specials,Credit, Directions, and Contact Us. Two links, the Showroom and Store, have pop-up menus underneath them. For purposes of showing the example, only 3 pages are working, the 'Specials.php' page, the 'atv.php' page, and the 'parts.php' page. When you open the page, you will see you are on the specials.php page. I am using PHP to display the white 'over' state depending on which page you are on. Now, mouseover the 'SHOWROOM' and 'OUR STORE' buttons. See how the menus appear below the buttons? That's how they are supposed to show up. Mouseover the 'SHOWROOM' and click on ATVs. You are at the ATV page, but mouseover the SHOWROOM menu again. See, it changes locations!!!! Do the same for the 'OUR STORE' and click Parts page. Now the other one has returned to normal and the OUR STORE menu acts up. I can't figure out why they are changing like that, unless I'm missing tags or something and it's screwing it up. BTW, I haven't put any closing body or html tags on the pages yet. I am using IE v.6. Any help on this would be appreciated. Thanks! Sarah
  8. I believe it is something within the router. I am going to check with my landlord (who owns the router) and tell him to check the firewall. I'll let you know what happens. Thanks.
  9. The help desk said it was an issue with my ISP. I connect wirelessly to a router using Verizon DSL, but I doubt it is anything to do with them. I think this may be a problem with the router's firewall. Do you think it is blocking port 21 by default? What port does cPanel use? I'll bet it is blocking those ports.
  10. Ok, I'm at the computer now. Yes, the FTP is set to passive mode. It OK's my password and then says... 227 Entering Passive Mode (69,50,210,183,60,103) Opening data connection to xx.50.210.183 Port: 15463 MLSD A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. Timeout (50s). Active Help: http://www.smartftp.com/support/kb/index.php/74 Client closed the connection. Automatic failover of data connection mode from "Passive Mode (PASV)" to "Active Mode (PORT)". Does anyone know what that means? I used the default settings here and at work but I can connect at work just fine. I also tried logging on to my Cpanel now, and I get 'page cannot be displayed'.
  11. I am in Pennsylvania and I tried doing a tracert. here's what I got: tracert www.richardgeary.com Tracing route to richardgeary.com [] over a maximum of 30 hops: 1 * * * Request timed out. 2 26 ms 24 ms 23 ms 3 38 ms 50 ms 68 ms gateway-fa0-0-0-002.wb3.ptd.net [] 4 48 ms 31 ms 43 ms gateway2-atm1-2-306-sm22wb2.sm.ptd.net [207.44.1 24.201] 5 34 ms 29 ms 27 ms POS4-1.GW2.PHL6.ALTER.NET [] 6 26 ms 63 ms 26 ms so-7-0-0.cl2.phl6.alter.net [] 7 31 ms 74 ms 38 ms 0.so-5-1-0.xl2.dca6.alter.net [] 8 40 ms 30 ms 26 ms pos7-0.br3.dca6.alter.net [] 9 28 ms 38 ms 27 ms 10 31 ms 37 ms 28 ms ge-4-1-0--0.cr02.mcln.eli.net [] 11 67 ms 74 ms 58 ms so-0-0-0--0.gw01.atln.eli.net [] 12 79 ms 69 ms 59 ms so-0-0-0--0.cr01.dlls.eli.net [] 13 117 ms 95 ms 65 ms so-7-0-0--0.cr02.dlls.eli.net [] 14 120 ms 93 ms 99 ms so-0-0-0--0.cr02.phnx.eli.net [] 15 102 ms 111 ms 93 ms ge-7-0-0--0.gw05.phnx.eli.net [] 16 106 ms 93 ms 185 ms gw0-cust-atjeu-com.phnx.eli.net [] 17 94 ms 184 ms 105 ms server36.tchmachines.com [] Trace complete. Don't know what the first request timed out means.. But you said you were getting an IP address of, you might have tried to tracert richardgeary.com instead of the www.richardgeary.com, which will not resolve to the correct IP.
  12. Did you just get your account set up? It could be that is has not propegated yet....
  13. Well, once again I've figured out my problem. I think it was a combination of the returning values and how the code snippet was originally written. I revised the function to this: >function VALIDATE_USPHONE($phonenumber){ if ( (preg_match("/^[0-9]{3,3}[-]{1,1}[0-9]{3,3}[-]{1,1}[0-9]{4,4}$/", $phonenumber) ) == TRUE ){ return TRUE; } else{ return FALSE; } } and my function call to this: >if (!@VALIDATE_USPHONE($_POST['phoneno'])){ $msg=$msg."Please enter a valid phone number.<br>"; $flag = "NOTOK"; } And it worked fine. Thanks for everyone's help.
  14. I believe it has something to do with the returning value. But I'm not quite sure how to handle it...
  15. Bruce- First off, thanks for the code. I tried your function and wrote this to call it: >if (!@VALIDATE_USPHONE($_POST['phoneno'])){ $msg=$msg."Please enter a valid phone number.<br>"; $flag = "NOTOK"; } When I entered in my form 123-456-7890 as the phone number, it should have let me submit the form since that is a valid format. However, it said "Please enter a valid phone number." Everything I was putting in was giving me the error. What did I do wrong? Is it something with the return value?
  16. Sarah

    Popup Window

    Hmm.... I'm not seeing it do anything...
  17. Good afternoon! I am writing a function to try and validate a phone number field using a preg_match function. I am having a hard time understanding how it works but this is what I've got so far. It should accept an entry in this format: xxx-xxx-xxxx and if it isn't, then it should return false. >function checkPhone($element){ $phoneno = trim($element); return !preg_match("(^(.*)[0-9]{3})(.*)([0-9]{3})(.*)([0-9]{4}$)", $phoneno); } I call this function in my code like this: >if (!@checkPhone($_POST['phoneno'])){ $msg=$msg."Please enter a valid phone number.<br>"; $flag = "NOTOK"; }else{ ....blah blah blah this code is if the phone number checks out ok } But when I run the function in my debugger, it shows me this warning: Debug Warning: validation.php line 29 - preg_match(): Unknown modifier '(' Any ideas? Thanks in advance.
  18. Hello all- When I'm at home, I am strangely unable to upload any files to the server. I use SmartFTP but it will not connnect. Then I tried to connect to cPanel to upload the files, but it will not even let me see the page. I have no problem with the domains I am accessing, since I can access them via other computers. I thought it may be a firewall issue so I tried making sure the Windows firewall is unblocking the program, but to no avail. I am exhausted of ideas on what the heck is on my PC why this wouldn't be working. I am running Windows XP SP2 with firewall enabled, but set to unblock SmartFTP. Any ideas? Sarah
  19. I am sending more information in a PM, I hope that is okay
  20. I couldn't figure this out, it was causing MAJOR problems with my code so I gave up and turned register_globals back on, because that was the only way it could work. Well of course now I'm still getting some weird results again. I dont understand. *sigh* If anyone could help me, please send me a PM. Thanks.
  21. I've come to the conclusion the variables that get passed in the URL are not members of the $_POST superglobal, they are from $_GET, which clears up a lot for me. So I've changed those $_POST references back to $_REQUEST. However, the $_POSTs are still giving me problems. I don't think I am referencing them properly.
  22. In addition, I am getting this error: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /myfile.php on line 26 I have no idea what this error is. My line 26 reads: >print "$_POST['action'] is the action"; All I am trying to do is make sure these variables are printing out what they are supposed to be. In this instance, I am passing 'action=view' in the URL in my script. the url reads 'myfile.php?action=view' and then I get the parse error. Maybe this isn't POST? is that why this isn't working?
  23. Hello all- In one of my other threads I was talking about turning off register_globals in the php.ini file for security purposes. Well I got it turned off, and now my scripts are really screwed up! I don't know what I did but I'm seriously hoping I could fix it. I'm sure hope it's something small. I was previously requesting my form fields by saying something like: >$fname = $_REQUEST['firstname']; That was with register globals on, and now I'm under the impression I should be using the $_POST var instead of $_REQUEST. So I changed all my instances of REQUEST in my code that takes form vars and now I'm getting some weird results, like SQL errors which I've never gotten before. Please help!
  • Create New...