Jump to content

kevin_it

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kevin_it's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you very much I REALLY appreciate it. I hate having people write code for me, but I never saw that error before and was at a loss. Again, thank you it worked perfectly. Kevin
  2. I seem to be having a problem with my php. Nothing major, more of a pain then anything. I moved servers recently, but now when I try to submit a form via php it is slow. Let me elaborate some. I have php-5.1.6 and httpd-2.2.2 installed. The website seems to work fine, with this one flaw. I have a simple Contact form that all you need to do is enter in your first and last name, email address, phone number and your general question. The fields are set to the following values: first, last, email_address, contact, inquiry. Within the form I call the code by action="contact.php" and it emails the recipient the values in a formatted email. But when you click on submit, the form hangs and I get the entries following this explination in my error_log. Also note that the script eventually finishes and gets emailed, but it takes a good 10 - 20 seconds to complete. contact_error.html is the error page displayed when a field is not entered. I am sure this is just a setting I am missing or something, but any help to make this submit quicker would be greatly appreciated. error_log: [Mon Jan 29 08:44:41 2007] [error] [client 000.000.000.000] PHP Notice:  Undefined index:  first in /www/contact.php on line 5, referer: contact.php [Mon Jan 29 08:44:41 2007] [error] [client 000.000.000.000] PHP Notice:  Undefined index:  last in /www/contact.php on line 6, referer: http://216.13.38.124/contact.php [Mon Jan 29 08:44:41 2007] [error] [client 000.000.000.000] PHP Notice:  Undefined index:  email_address in /www/contact.php on line 7, referer: contact.php [Mon Jan 29 08:44:41 2007] [error] [client 000.000.000.000] PHP Notice:  Undefined index:  contact in /www/contact.php on line 8, referer: contact.php [Mon Jan 29 08:44:41 2007] [error] [client 000.000.000.000] PHP Notice:  Undefined index:  inquiry in /www/contact.php on line 9, referer: contact.php [Mon Jan 29 08:44:41 2007] [error] [client 000.000.000.000] PHP Notice:  Undefined index:  first in /www/contact_error.html on line 185, referer: contact.php [Mon Jan 29 08:44:41 2007] [error] [client 000.000.000.000] PHP Notice:  Undefined index:  last in /www/contact_error.html on line 192, referer: contact.php [Mon Jan 29 08:44:41 2007] [error] [client 000.000.000.000] PHP Notice:  Undefined index:  email_address in /www/contact_error.html on line 198, referer: contact.php [Mon Jan 29 08:44:41 2007] [error] [client 000.000.000.000] PHP Notice:  Undefined index:  contact in /www/contact_error.html on line 204, referer: contact.php [Mon Jan 29 08:44:41 2007] [error] [client 000.000.000.000] PHP Notice:  Undefined index:  inquiry in /www/contact_error.html on line 211, referer: contact.php I posted the lines php seems to be having problems with. contact.php: # grab the POST variables from the HTML form, # put them into PHP variables so we can work with them $first = $_POST['first']; $last = $_POST['last']; $email_address = $_POST['email_address']; $contact = $_POST['contact']; $inquiry = $_POST['inquiry']; I am really at a loss. Thanks everyone. Kevin
  3. I appreciate the response and will try it and let you know. I value your input, but my response to your comment is that I AM learning php. Unfortunately I do not have the luxury of spending tons of time on it, so therefore I turned to Dreamweaver to handle as much php as i need it to until I get a stranglehold on this. Thanks. Kevin
  4. Ok, Dreamweaver is pissing me off. :) I would like to display the First and Last name of the User logging in. In my table i have all the necessary columns, fields, etc ... I think my only problem is I have no idea what variable to use to query against. I can successfully use [b]echo $_SESSION['MM_Username'][/b] and it displays the username. I don't want that. Can I use $_SESSION['MM_Username'] somehow in my query to get the firstname and lastname fields? I figure that the username would be the best way to use int he query as it is unique. Is there a much simpler way to do this? Thanks all. Kevin Kevin
  5. I am using php 5 and MySQL 4.0.18, and would like to accomplish the following on my page: I would like to only limit the user to only login every 2 weeks for a period of 4 days. So for example, they can login in Saturday, Sunday, Monday and Tuesday, but from that Wednesday to 2 weeks later they are not allowed to login, it should go to a countdown page saying you have xx days until you can login again. Confusing? I am a partial newbie, but am getting better at php. Let me know if there is anything else I can contribute to try and explain better. Thanks all. Kevin
  6. Thank you very much everyone. I really appreciate it. Like I said, I have tore off my n00b skin and am getting better with PHP. Still a lot to learn, but with great healp like this I can keep myself on the right track. Thank again all!! A+++++++ Kevin
  7. I have built a php page that will allow a user to change their password and it works great. What I would like to accomplish now is to compare the "New Password" field (newpassword) and the "Confirm Password" field (confpass) to make sure they are both the same. What would be the commands to do this. I am a "just climbed out of the n00b status". :) Thanks everyone. Kevin
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.