No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
9 Posted Topics
hi, please help me nice guys ;) mysql column: `userid` contains: donny `friends_userid` contains: cherry linda jackson michael mika // each word means one different person then... how to: ----------------- add more friends delete a friend edit a friend ------------------ in the `friends_userid` using php without breaking another "friends"?? thanx … | |
Re: this will work for you: [CODE] <script type="text/javascript"> function test(){ document.getElementById('php_code').innerHTML = '<?="hello world"?> '; } </script> <a href="#" onclick="test();"> test </a> <span id="php_code"></span>[/CODE] | |
Re: [CODE]mysql_query( "UPDATE newbase2 SET lname = '".$lname."', fname = '".$fname."', mname = '".$mname."', age='".$age.", 'gender = '".$txtgender."', course = '".$course."' WHERE id = '$id' ");[/CODE] can be more simple as: [CODE]mysql_query( "UPDATE newbase2 SET lname = '$lname', fname = '$fname', mname = '$mname', age='$age', gender = '$txtgender', course = '$course' … | |
Re: [CODE]<script language=javascript type="text/javascript"> function blah(e){ if(e.name.value=='') { alert('name is required boss!'); e.name.focus(); return false; } } </script> <form name=regform action="" method=post onSubmit="return blah(this)"> <input type=text name="name" /> <input type=text name="address" /> <input type=text name="age" /> <select name="gender"> <option value="male">Male</option> <option value="female">Female</option> </select> <select name="religion"> <option value="Islam">Islam</option> <option value="Cristian">Cristian</option> </select> <input … | |
Re: You need these: 1. you can control the second server 2. CURL | |
Hi all... I plan to develop a Free Domain Name Service like .co.cc. Actualy it's a free subdomain service. For example, I use: [B]xxx.tld[/B]. Now, 1. how to create a subdomains (or virtual subdomains) using PHP+Mod Rewrite? Example: [B]thedomain.[/B]xxx.tld I mean, how to write it on .htaccess file using PHP? … | |
I want insert some rows into mysql, each row shold be like this: [code] <input name="code[]" value="{code item dari data mysql}" /> <input name="name[]" value="{nama dari data mysql}" /> <input name="hrg[]" value="{harga dr mysql}" /> <input name="qty[]" value="{qty diinput sendiri}" /> <input name="subt[]" value="{autocalculated saat mengisi qty}" /> [/code] The … | |
Re: Please do this: [CODE]<script type="text/javascript"> function validate1(form) { if (form.last.value == "") { alert("You must enter Last Name."); form.last.focus(); return (false); } if (form.first.value == "") { alert("You must enter First Name."); form.first.focus(); return (false); } if (form.comments.value == "") { alert("You must enter Comments/Feedback."); form.comments.focus(); return (false); } return … | |
Re: [QUOTE=senexom;135639]You need to loop through a series of texboxes, right? so something like this should work to get the value of your textboxes... [CODE]for(i=0; i<document.forms[0].elements.length; i++){ if(document.forms[0].elements[i].type == 'text') var elName = document.forms[0].elements[i].name; var elValue = document.forms[0].elements[i].value; // Display element name and value alert(elName +' = '+ elValue) } }[/CODE][/QUOTE] … |
The End.