robert_gsfame
Members-
Posts
876 -
Joined
-
Last visited
Everything posted by robert_gsfame
-
I was wonder if it is possible to attach msn messenger to my site like yahoo messenger If yahoo messenger i have to use ymsgr?sendIM how bout any other messengers? thx
-
Thx aeroswat, yeah i should use in_array..... Thank you for your help!!
-
I have this code <?php $country=$_POST['country']; if($country[0]=="brazil"){ $brazil="CHECKED";} if($country[1]=="paraguay"){ $paraguay="CHECKED";} if($country[2]=="germany"){ $germany="CHECKED";} if($country[3]=="argentina"){ $brazil="CHECKED";} if($country[4]=="japan"){ $brazil="CHECKED";} ?> <html> <head> </head> <body> <form name=form1 action=$_SERVER['PHP_SELF'] method=POST> <input type =checkbox name=country[] value=brazil <?php echo $brazil;?>>Brazil <input type =checkbox name=country[] value=paraguay <?php echo $paraguay;?>>Paraguay <input type =checkbox name=country[] value=germany <?php echo $germany;?>>Germany <input type =checkbox name=country[] value=argentina <?php echo $argentina;?>>Argentina <input type =checkbox name=country[] value=japan <?php echo $japan;?>>Japan <input type=submit value=okay> </form> </body> </html> The problem is when i tick on all checkboxes and click on the submit button, i only found that only 3 checkboxes being ticked although i have ticked 4 checkboxes...??Which code is wrong?? thx
-
Popup window after executing query
robert_gsfame replied to robert_gsfame's topic in PHP Coding Help
-
I really confused with this..hope that anyone could solve this problem I wish to have an alert stated:"your query has been successfully executed" after i run this query "INSERT INTO blabla" in page1.php I always have the alert box appeared after executing the query but always with blank page n yet i have to press ok on the alert before page1.php open
-
there is no problem actually with the alert(), the problem is that the alert window pop up when the actual page goes blank..... :-\
-
sorry what i mean is how to do that without creating any function in javascript
-
I have this code <?php require_once('configuration.php'); if(isset($_POST['submit'])){ $query=mysql_query("INSERT INTO table VALUES('aa')"); if($query){ print"<script>Alert('Hello world')</script>";}?> <html> <head> <body> <form name="form1" method="POST" action="<?php echo $_SERVER['PHP_SELF'];?>" <input type="submit" value="submit"> </form> </body> </head> </html> When i press the submit button, insert query will run and i will have an alert box...but with blank page as the page still keeps on loading til i press ok button on the alert box....Can i have an alert box along with the page like what i have when validating a text box but without using javascript?? thx
-
url typed: da_vinci.mydomain.com Appeared on url: da_vinci.mydomain.com/page1.php?user=da_vinci (i don't want the bold one appear) Desired url : da_vinci.mydomain.com If i type: davinci.mydomain.com No problem exists as i have only davinci.mydomain.com typed on url The problem is the underscore character
-
would like to create a subdomain for user and everything will be redirected to page1.php The problem is that when there is a special character in the subdomain let say Da-vinci.mydomain.com or Da_vinci.mydomain.com Url appears this way: Da-vinci.mydomain.com/page1.php?user=Da-vinci I wish to have this only Da-vinci.mydomain.com or Da_vinci.mydomain.com without any page1.php?user=Da-vinci Can anyone help me with my .htaccess?? Below is what i did <IfModule mod_rewrite.c> Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !www.mydomain.com$ [NC] RewriteCond %{HTTP_HOST} ^([a-z0-9-]+).mydomain.com [NC] RewriteRule (.*) page1.php?user=%1 [L] </IfModule> thanks for any helps, as i really newbie on this matter
-
I have created subdomain for user and all will be redirected to page.php The problem is that when there is a special character in the subdomain let say da-vinci.mydomain.com then i have this on the url da-vinci.mydomain.com/page.php?user=da-vinci I wish to hide page.php?user=da-vinci How can i do this?? Below is my .htaccess code <IfModule mod_rewrite.c> Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !www.mydomain.com$ [NC] RewriteCond %{HTTP_HOST} ^([a-z0-9-]+).mydomain.com [NC] RewriteRule (.*) page.php?user=%1 [L] </IfModule> I am really newbie on this THX for any helps!!
-
I would like to create a subdomain for user and everything will be redirected to page1.php The problem is that when there is a special character in the subdomain let say Da-vinci.mydomain.com or Da_vinci.mydomain.com Url appears this way: Da-vinci.mydomain.com/page1.php?user=Da-vinci I wish to have this only Da-vinci.mydomain.com or Da_vinci.mydomain.com without any page1.php?user=Da-vinci Can anyone help me with my .htaccess?? Below is what i did <IfModule mod_rewrite.c> Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !www.mydomain.com$ [NC] RewriteCond %{HTTP_HOST} ^([a-z0-9-]+).mydomain.com [NC] RewriteRule (.*) page1.php?user=%1 [L] </IfModule> Thx for any helps, as i really newbie on this matter
-
subdomain always redirect to index.php??
robert_gsfame replied to robert_gsfame's topic in PHP Coding Help
okay finally everything was solved thx for your help!! inversoft -
subdomain always redirect to index.php??
robert_gsfame replied to robert_gsfame's topic in PHP Coding Help
<IfModule mod_rewrite.c> Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !www.domain.com$ [NC] RewriteCond %{HTTP_HOST} ^([a-z0-9-]+).domain.com [NC] RewriteRule (.*) page1.php?user=%1 [L] </IfModule> i have modified some script n it works but image that is stored inside my folder didn't appear -
subdomain always redirect to index.php??
robert_gsfame replied to robert_gsfame's topic in PHP Coding Help
yeah you're right i got wrongly loop!! thanks SO MUCH for all helps both of you're really great!! One more thing, i redirect the page to http://www.domain.com/page1.php?user=$subdomain when subdomain was typed on url Can i have only subdomain.domain.com typed instead of subdomain.domain.com/page1.php?user=$subdomain using .htaccess I have this but i don't think it's correct as i am just new on this.. <IfModule mod_rewrite.c> Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !www.domain.com$ [NC] RewriteCond %{HTTP_HOST} ^([a-z0-9-]+).domain.com [NC] RewriteRule (.*) page1.php?user=%1 [L] RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).domain.com [NC] RewriteRule (.*) page1.php?user=%2 [L] </IfModule> -
subdomain always redirect to index.php??
robert_gsfame replied to robert_gsfame's topic in PHP Coding Help
I use the second method but i have this error when using mozilla The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. * This problem can sometimes be caused by disabling or refusing to accept cookies. -
I really confused with this....i wish to have a subdomain for my user but i always manage subdomain by typing *.domain.com inside my cpanel which is always redirect me to index.php Is it possible to redirect all subdomain to http://www.domainname.com/page1.php instead of index.php??? Would be appreciate if you can give me brief explanation thx so much!!
-
In order to solve the problem regarding this error :"CANNOT MODIFY HEADER" i put session.auto_start = off inside php.ini Anyway i just talked to a programmer and he said that i should stored php.ini if the default setting of the server is not supporting that Is that true?? Then where can i find php.ini in my local server so that error will not occur when running the site..which folder?? i use dreamweaver anyway
-
Yesterday i found problems in my website which never occured before.. I had this warning :"Cannot modify header blablabla", but i really didn't get the clue as i have checked all of my scripts and no white space left before or after i set the session Just to tell you guys, that i didn't get this problem within 8 months until last night. Then i put php.ini inside my root folder and the problem solved I just wanna ask what is php.ini actually for?? Why should i have it?? why do the same problem never occured when running the website in local server although i dont have php.ini?? thx for brief explanation
-
anyway thx dan, input type=password will turn anything inside the textbox to ***** including text which should appear when the text box is empty
-
but i wish to have some text typed "Input password" when nothing was there
-
I have this code <input type="text" name="password" id="password" style="color:#CCCCCC" value="Type Password" onfocus="if(this.value==this.defaultValue){this.value='';this.style.color='#000000';this.type='password';}" onblur="if(this.value==''){this.type='text';this.value=this.defaultValue;this.style.color='#CCCCCC';}"/> The problem is that when i try to type something inside password textbox let say "myname", it didnt change the text into password type ( ******) Which part is wrong?? it worked well in mozilla browser but not in IE 6.0
-
I have this function function printContent(id){ str=document.getElementById(id).innerHTML newwin=window.open('','printwin','left=100,top=0,width=810,height=800,scrollbars=yes'); newwin.document.write('<HTML>\n<HEAD>\n'); newwin.document.write('<TITLE>Print Page</TITLE>\n'); newwin.document.write('<link rel="stylesheet"/>'); newwin.document.write('<style type="text/css">'); newwin.document.write('</style>'); newwin.document.write('<script>\n') newwin.document.write('function chkstate(){\n') newwin.document.write('if(document.readyState=="complete"){\n') newwin.document.write('window.close()\n') newwin.document.write('}\n') newwin.document.write('else{\n') newwin.document.write('setTimeout("chkstate()",2000)\n') newwin.document.write('}\n') newwin.document.write('}\n') newwin.document.write('function print_win(){\n') newwin.document.write('window.print();\n') newwin.document.write('chkstate();\n') newwin.document.write('}\n') newwin.document.write('<\/script>\n') newwin.document.write('</HEAD>\n') newwin.document.write('<BODY onload="print_win()">\n') newwin.document.write(str) newwin.document.write('</BODY>\n') newwin.document.write('</HTML>\n') newwin.document.close() } I only have a little problem with window.open(), i dont want to open a new window thx
-
so all of a sudden when i boot up theres always this desktop icon that says Install_NSS .. but i never downloaded it ever. After i delete it , and i remove it again it comes back. Also i cant remove from progams in control panel... how do i delete this permanently?