Jump to content

jihmantiquilla

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jihmantiquilla's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. iam using Nusphere as an ide which has a local webserver. how would i integrate the PEAR or the PHPMailer into the Nusphere???
  2. gud day, i am working into a send mail function in php, but it seems its not working due to these errors: Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.bizmail.yahoo.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Documents and Settings\Ivan\Application Data\NuSphere\PhpED\projects\project2\Email.php on line 77 i do have use init_set to change my smtp server. what are the other things that i need to do in order to sucesfully send an email.. comments and suggestion is much appreciated.
  3. upon searching the web. i come up with zend studio as the ide of zend.. i'm using nuSphere right now as my ide. do you recommend zend in developing php.
  4. i had also a problem with regards to fetching data's on my sql statement. it seems the value tends to be always '0' knowing that in the sql statement it returns the value 1, and if i try to display it using print_r/echo/ ders no values that is being displayed. do i write my code right?? <? if($_REQUEST['command']=='checkuser') { $username=$_REQUEST['txtusername']; $result=mysql_query("select count(UserName) as User from user where UserName='$username'"); $row=mysql_fetch_field($result) or die(mysql_error()); ?> <div id="text" style="position:absolute; overflow:hidden; left:240px; top:202px; width:180px; height:20px; z-index:6"><div class="wpmd"> <div><font face="Arno Pro Caption" color="red"> <? if($username!="") { if($row->User>=1) { print_r($row->User); //echo("Username already exist"); } else if($row->User==0) { //echo("Username Available"); print_r($row->User); } } else { echo("No values found in username"); } ?> </font></div> </div></div> <? } ?>
  5. i haven't put any thing to the action method. since i have the event on the button onclick. does it really recommended not to use $_REQUEST. isn't that the print_r() is also the same with echo()?? if i into using $_SEESION array where in i can store the values and retrieve it any time. does it always recommended to use $_SESSION in a simple form submission and validation??
  6. gud day, i'm new in here phpfreaks and also new into php programming, javascript. but an experienced programmer with regards to .net, i'am juz confused with regards to the submission and validation of forms. when i started to submit the page. the values on the pass and pass2 textboxes always disapper.:( this is my code javascript function checkTextboxes() { f=document.form1; f.command.value="Add"; f.submit; } html <input name="btnSubmit" type="submit" value="Submit" onclick="checkTextboxes()" style="position:absolute;left:211px;top:527px;z-index:27"> php <? if($_REQUEST['command']=='Add') { $pass=$_REQUEST['txtPass']; $pass2=$_REQUEST['txtPass2']; ?> <div id="text" style="position:absolute; overflow:hidden; left:240px; top:280px; width:180px; height:20px; z-index:6"><div class="wpmd"> <div><font face="Arno Pro Caption" color="red"> <? if($pass!=$pass2) { echo("Password values are different"); } ?> </font></div> </div></div> <? } ?> another question,.. is there is a way where in i can manage the events that occur to a control?? like textchange in textboxes. any comments and suggestion is much appreciated
×
×
  • 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.