Jump to content

casilda

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

casilda's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey thanks for ur reply.. I did it in another way and it worked.. anyway thanks a lot...
  2. I have a php form page, in which some of the fields are called from the database and some of the fields are blank. I have one field as country in which i call the data from the database: and another field as Telephone : it has 3 fields with all that code stuffs: what i want is eg: For US: i have 3 fields for telephone numbers to enter in.. If the country is India : I need one of the field to be disabled.. so, wat i did is I passed the value of the pulled in data into a textbox and check conditions.. My code is below: function disable() { var db = document.form1.txt_c.value; // gets the value from the database var hid = document.form1.spore.value; //It is a predifined value to check and its hidden,.. if(db = hid) { document.form1.t2.disabled=true; } else { document.form1.t2.disabled=false; } } Then i called the functiion as below, <input name="address" type="text" id="address" size="50" onblur="disable()"/> It doesnt work for me...my else part doesnt work for me..
  3. <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("db", $con); $sql = "SELECT c_name, c_email FROM company_creator"; $result = mysql_query($sql); while ($row = mysql_fetch_assoc($result)) { $to = "'" . $row['c_name'] . "' <" . $row['c_email'] . ">"; $subject = "RE: The subject"; $message = "Your message goes here"; $headers = 'From: noreply@gmail.com' . "\r\n" . 'Reply-To: noreply@gmail.com' . "\r\n" . 'X-Mailer: AnythingYouWant.0' ; $success = mail($to,$subject,$message,$headers); } ?> It gives me error in here -- > $success = mail($to,$subject,$message,$headers); Failed to connet to mail server, verify your SMTP and smtp_port I am using a localhost.. how to set the mail server..
  4. Actually its both.. for the php script..i coudnt get it right and regarding the cron..no idea of it..
  5. Basically it is.. I have a Admin page- > In this the admin wil be able to create a user by entering in his particulars: eg: user name, password for the user, telephone and email address.. The user will able to login using this username and password. Once they log in, they see a form which has to be filled in by them,,..once they submit the form, the form details is passed on to the admin..If the user has sumitted the form, then its completed.. What i need is an Auto reminder for the users to remind them to fill in the report form and send it.. the email address is taken from the user table, that the admin has created... eg: lets say the user has to submit the report on march Then an auto reminder has to be sent on Feb 1st. If the user has not yet submitted the form, a 2nd auto reminder must be sent on Feb 7th. if again he hasnt submitted then another auto reminder has to be sent on Feb 21st.. So, total 3 auto reminders upon checking of conditions,....If the user has submitted the report no need to send auto reminders. The server has to run the php script on its own.. I think this is done using CRONJOB in the cpanel..But i dont have any idea on it,,,I read through many resources, but coudnt get any idea... Can someone help..I need this immediately.. Ur help is much appreciated... Thanks again..
×
×
  • 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.