Jump to content

robert_gsfame

Members
  • Posts

    876
  • Joined

  • Last visited

Everything posted by robert_gsfame

  1. if i use htmlentities then i will get another problem as all newline <br/> that user has from ENTER button also shown as <br/> not newline So then i cannot prevent this happen?
  2. I got this question in my mind.....when should we use nl2br? is it used during inserting the data?? like $data=nl2br($_POST['text']); So then i will have all html code stored inside the database like <br><br> but what if let say i type "my name is <br> John" in the textbox will this <br>changed into newline when retrieving the data from database??
  3. Is it possible to pause for several seconds before running the script window.location.href??
  4. <div id="test" style="display:none"> <tr> <td bgcolor="red"> </td> <td bgcolor="red"> </td> </tr></div> i wish to hide this <tr> using div, but i can't... which part is actually wrong?
  5. I have this function function document(document1,document2,document3,document4,document5) Some document might be empty, but the other has value , i wish to present the value in <table>...which has 3 <td> each <tr> so assume i have document1, document2, document3 and document5 with value ...how can i do that i try to do this with Loop using for() but always stuck when trying to get the value for(i=1;i<6;i++){ if(("document"+i)!=="") } i always find that the bold one always be treated as a string, so i cant get the value
  6. i want to hide the table, but i cant do it....i dont even know what cause this problem as nothing seems to be incorrect
  7. I dont know which part is wrong cause the script not working echo "<div id=toggle style='display:none;'>"; echo "<table><tr><td>aaa</td></tr></table>"; echo "</div>
  8. I try to use .style.display to check whether the style.display is none, but it didnt work how can i check the style display if(document.getElementById("a").style.display=="none){ alert("none")}
  9. use mod_rewrite, anyway this is Apache issue
  10. Assume i redirect the page from a.php to b.php using header("Location:b.php?name=xxxx&age=xx"); then again in b.php i redirect to a.php user still could see the "b.php?name=xxxx&age=xx" as it will be saved as browser history.. can i erase this so once b.php being redirected to a.php, the history of b.php erased.. I just want to protect the information which are passed through url name=xxxx&age=xx
  11. okay... so its like jquery in javascript.. anyway thx for your help and brief explanation!
  12. maxudaskin, i am still new to PHP n still try to improve my knowledge...what is zend framework actually used for?
  13. sorry..actually i have this one $val1=explode(";",$_GET['val1']); $countval2=count($val1); $val2=explode(";",$_GET['val2']); $countval2=count($val2); $value=array_diff($val1,$val2); n i wish to put the difference result in a string called $choice
  14. How can i put foreach result in a string, so let say i have 1 2 3 and separated with ";" so it goes 1;2;3 and i want to put it as $value...how to do?? foreach($val as $indeks) $choice=""; for($i=0;$i<count($val);$i++){ $choice=$choice.$val[$i].";"; } echo $choice; this give me wrong result..
  15. I got this statement ARRAY ?? i explode both strings and use the array_diff but got this statement...
  16. lets assume i have this on url: test1.php?itemx=1;2;3;4&itemy=2;3 so then i will explode each item itemx=explode(";",$_GET['itemx']) itemy=explode(";",$_GET['itemy']) what i want to do is to have another string call $itemz which is the difference between itemx and itemy, therefore the itemz should consist of 1;4 how can i do it with loop??
  17. is it possible to do this for(i=0;i<length;i++){ if(document.form.elements['i'].style.display==""){ alert("document.form.elements.value")} }
  18. if it's javascript problem then i dont think this is the right place to post this issue sorry
  19. i have my this php code echo "<form name=form1>"; while($array=mysql_fetch_array($connection)){ $id=$array['id']; $name=$array['name']; echo "<td id=$id><input type=checkbox value=$id>$name</td>";} echo "</form>"; n also i provide it with button so assume button click then function clicking(){ var size=document.form1.elements.length; for(var i=0;i<size;i++){ if(document.form1.elements.type=="checkbox"){ if(document.form1.elements.checked){ document.getElementById(document.form1.elements.value).style.display="none"; }}}} i have problem here, when the button click <td> with chosen id wasn't disappear although i've set style.display="none" wish that someone could help and specify the error part thanks in advance
  20. i think the problem with this part, but i dont know why document.getElementById(document.form3.elements.name).style.display="none";
  21. i have my this php code echo "<form name=form1>"; while($array=mysql_fetch_array($connection)){ $id=$array['id']; $name=$array['name']; echo "<td id=$id><input type=checkbox value=$id>$name</td>";} echo "</form>"; n also i provide it with button so assume button click then function clicking(){ var size=document.form1.elements.length; for(var i=0;i<size;i++){ if(document.form1.elements.type=="checkbox"){ if(document.form1.elements.checked){ document.getElementById(document.form1.elements.value).style.display="none"; }}}} i have problem here, when the button click <td> with chosen id wasn't disappear although i've set style.display="none" wish that someone could help and specify the error part Thx in advance
  22. gosh...i dont have any knowledge about AJAX
×
×
  • 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.