Jump to content

raj_verma

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

raj_verma's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks a lot. This really works Thanks once again.
  2. [!--quoteo(post=370250:date=May 1 2006, 05:17 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ May 1 2006, 05:17 AM) [snapback]370250[/snapback][/div][div class=\'quotemain\'][!--quotec--] Could you provide details on the versions of PHP and MySQL. Also I believe you have to configure MySQL to use the old passwords directive to sort this issue out. [/quote] I m using php 4.2 and mysql 4.1 You are saying that I have to configure MySQL please tell me how i configure MySQL And also sort my problem how i connect MySQL to PHP. I will be thankful to you to sorting out this problem Please reply as soon as possible
  3. Hello Everyone, When i m connecting mysql database to php there is showing an error. Please help me guys to sorting it out. I m very new to this language. [b]The error is as follow :-[/b]Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\raj\database.php on line 13 [color=#FF0000] Please reply me as soon as possible Thanks
  4. Hello guys PHP is a new language for me. I had created a simple form which sends information to user via mail for this i m using mail() function But its showing me error. The error show following message Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for rajesh@softcellsolutions.com in C:\PHP\inquiry.php on line 40 Please help me to sort it out. Here is the code :- [b]FORM.HTML[/b] <html> <head> <title>My Form</title> </head> <body> <div align="center"><font color="red"><H1>INQUIRY FORM</H1></font></div> <form action="inquiry.php" method="post"> <b>What is your Name:</b><input type="text" name="name"><br> <b>Sex:</b> Male<input type="radio" name="sex" value="male"> Female<input type="radio" name="sex" value="female"><br> <b>Age:</b><input type="text" name="age" size="2"><br> <b>Select your Favorite Game:</b> <select name="game" > <option>Cricket</option> <option>Football</option> <option>Hockey</option> <option>Basket Ball</option> <option>Tenis</option> </select><br> <b>Your Mail ID:</b><input type="text" name="mail"><br> <input type="submit" value="SUBMIT"> </form> </body> </html> INQUIRY.PHP <?php $error=array(); if(empty($name)) $error[]="Please enter a name"; if(!isset($sex)) $error[]="Please select your sex"; if(!isset($game)) $error[]="Please select a game"; if(empty($age)) $error[]="Please enter your age"; if(empty($mail)) $error[]="Please enter your email id"; $numerr=count($error); if($numerr>0) { print("<font color=#F24A2D><h1>There is An error Occured in Entering Data !!!!!!</h1></font>"); for($i=0;$i<$numerr;$i++) print("<li>".$error[$i]."</li><br>"); print("<b>Please go<a href=form.html> back</a> and complete your form</b>"); exit; } $n=ucfirst($name); print("<div align=center><font color=#8B4396><h1>$n Your entered information is:</h1></font></div>"); print("Your Name is:".$name."<br>"); print("Your Sex is:".$sex."<br>"); print("Your Age is:".$age."<br>"); print("Your Favorite Game:".$game."<br>"); print("Your mail ID:".$mail."<br>"); $header="From:cool_rajesh1783@yahoo.com"; $comment="hi"; mail($mail,$name,$comment,$header); ?>
×
×
  • 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.