Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
60% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
3
Posts with Downvotes
1
Downvoting Members
3
1 Commented Post
0 Endorsements
Ranked #1K
~11.3K People Reached
Favorite Forums
Favorite Tags

33 Posted Topics

Member Avatar for cmgdev

[QUOTE=gbatanyakij;1137352]Hi please I would like to know the code for inserting images in php website[/QUOTE] there is none, PHP is a server side language you will need to echo out the image tag as you would write it using html

Member Avatar for JorgeM
0
859
Member Avatar for fsn812

Java is a true programming language that supports multithreading and has more to offer. PHP is a scripting language that executes lines of code at a time. Even when you program using oop principals your still limited or in most cases utilizing many work arounds outside of PHP to accomplish …

Member Avatar for mama_rock
0
529
Member Avatar for gunnarflax

in order to do this you need to create an object that will contain all your methods that you are planning to use for example. [CODE]$={ getElemById:function(){ here you write the code to retrieve elements } } [/CODE] if you wish to chain methods you will need to return your …

Member Avatar for gunnarflax
0
170
Member Avatar for sai.sriparasa

pass them using post or get then you can access them with php on the page they are submitted to. If your trying to add items before sending then create a hidden field and update that fields value property so whey you submit the information you can access that fields …

Member Avatar for jino
0
184
Member Avatar for incirus

ad and else statement in your state changed function where ready state =4. you can add your image until the document is ready to show what its retrieving from the server.

Member Avatar for incirus
0
135
Member Avatar for Kitten84

[QUOTE=Kitten84;1137031]When I view my webpage In Firefox if looks great but in Internet Explorer some images look a little blurry. If I zoom out to 90% it looks ok. My question is: Is there some JavaScript code that sets the user's browser to zoom at 90% if using internet explorer? …

Member Avatar for wrivera
0
73
Member Avatar for muralibobby2015

[QUOTE=muralikalpana;1095799]so it takes lots of tim to change every page. is there any another choice.[/QUOTE] google has a translator that works with your browser so I would give them a try to see if they have a developers api to use it.

Member Avatar for muralibobby2015
0
2K
Member Avatar for bigmanjames

okay your code is a little all over the place. So you want to click a button and then check against a list of names in a database?

Member Avatar for feoperro
0
120
Member Avatar for genieuk

i usually seperate my dynamic pages into 3 parts 1) top which includes head and navigation, css, includes 2)footer which includes footer information and maybe some generic functions that I will use on certain pages 3) all pages these will change depending of the nav but I dont have to …

Member Avatar for almostbob
0
162
Member Avatar for 68thorby68

> I am try to put the finishing touches to a mail function, and would like to show an alert to tell the user the form has been submitted correctly. I would then like to redirect them to another page in the site. > > The alert works OK on …

Member Avatar for 68thorby68
0
162
Member Avatar for ppetree

remove the href='#' altogether. that is what causes the link to refresh the page or jump as you called it.

Member Avatar for ppetree
0
143
Member Avatar for shiv0013
Member Avatar for shiv0013
0
139
Member Avatar for stangn99

[QUOTE=stangn99;1101485]Hey guys...I've run into a little issue (noob here). I’ve setup a little application for scheduling days + times in different rooms. I’m trying to implement some sort of an error check which determines is someone has already been scheduled for a certain day, time(range), and certain room. For example: …

Member Avatar for stangn99
0
135
Member Avatar for ronaldpaul

remove the value attribute and make sure your select tag is named. Then when you submit the value will be what is selected for the select tag example: [CODE] <select name='selection'> <option>1</option> <option>2</option> </select> // the value of selection is what the user selects [/CODE] if your trying to update …

Member Avatar for wrivera
0
169
Member Avatar for Venom Rush

try using ajax instead. You can validate your form and capthca before sending of form data. CURL is good for web services but probably not needed for what your trying to do.

Member Avatar for wrivera
0
131
Member Avatar for still_learning
Member Avatar for usm

[QUOTE=usm;1101589]Hello, I want record the visitors ip address and how many time they access my website but the problem that if the visitor behind firewall, so all I'll get a hundreds of visits from the same IP address so I thought about using cookie , first I'll search for my …

Member Avatar for wrivera
0
87
Member Avatar for vizz

its possible, but you will need to use java script to accomplish this

Member Avatar for Kruptein
0
75
Member Avatar for barryw33

[CODE] if(ajaxRequest.responseText=="what ever your looking to return") [/CODE]

Member Avatar for wrivera
0
112
Member Avatar for cali_dotcom

[CODE] //creates elements function createElem(type){ var NewElem=document.createElement(type); document.body.appendChild(NewElem); } //deletes elements function deleteElem(id){ var Elem=document.getElementById(id); document.body.removeChild(Elem); } [/CODE]

Member Avatar for wrivera
0
152
Member Avatar for barryw33

are you running any other forms on your submit form page? the only thing that I see that is a little off is the query string where you have a ? for your post data. var queryString = "?c_id=" + c_id + "&p_id=" + p_id; it should be var queryString …

Member Avatar for barryw33
0
173
Member Avatar for omnis

[QUOTE=nemo5;295273]There are more ways to do it than just cookies - it basicaly depends if you want to store the session between visits that happend at the same time, or if you want to save sessions for later use. If the later is what you want, go for cookies: [code] …

Member Avatar for wrivera
0
3K
Member Avatar for Boronia

[QUOTE=Boronia;1100165]Hi If anyone could help with below code as I am new to php [code]<?php $result = mysql_query("SELECT * FROM hotels ORDER BY city"); while($row = mysql_fetch_array($result)) { echo $row['city'] . " " ; echo "<br />"; } ?>[/code] above code list all cities as below newyork newyork newyork newyork …

Member Avatar for wrivera
0
58
Member Avatar for mitalichauhan

for loops tend to be best used when you know how many iterations you need while the while loop works best when you don't know how many iterations you will need off the start.

Member Avatar for JRM
0
108
Member Avatar for SgtMash

[QUOTE=kishan112;1101230]This is how it's done [CODE=php]if ($cvalue == "Germany" || $cvalue == "England" || $cvalue == "latvia" || $cvalue == "Africa") { echo "Do something" ; }[/CODE] Or you can use an array: [CODE=php] $countries = array("Germany","England","Latvia","Africa"); if (in_array($cvalue,$countries)) { echo "Do something" ; }[/CODE] Remember that in_array() is case-sensitive[/QUOTE] …

Member Avatar for kireol
0
122
Member Avatar for mundetas

[QUOTE=nav33n;1100920]:) I used your code to insert radio button value to column age with datatype int. [code] <html> <body> <form method='post'> <input type="radio" value="1" name="ys"> <input type='submit' name='submit' value='submit'> </form> </body> </html> <?php if(isset($_POST['submit'])) { $con = mysql_connect("localhost","root"); mysql_select_db("test2"); $radiobutton=$_POST['ys']; mysql_query("insert into a (age) values ('{$radiobutton}')"); } ?> [/code] If …

Member Avatar for wrivera
0
79
Member Avatar for Hitman Mania

[CODE] $vowels=array("a","e","i","o","u"); $length=strlen($_POST["fname"]); $count = 0; for ($i = 0; $i < $vowels; $i++){ for($j=0; $j<$length; $j++){ $char=substr($_POST["fname"],$j); if ($char==$vowels[$i]){ $count++; } } } echo 'There are (' . $count . ') vowels in the string (' . $_POST["fname"] . ').'; [/CODE] you need to search through each character and …

Member Avatar for Hitman Mania
0
1K
Member Avatar for Bolade

[QUOTE=Bolade;1100660]All I want to do is to design a form to collect info from users and have a php process it but I kept getting this error shouting undefine variable. Please some 1 check my code and tell me what is beyond my glimps [B]The form[/B] [CODE]<form action="process.php" method="post"> Your …

Member Avatar for almostbob
0
97
Member Avatar for LloydFarrell

[QUOTE=LloydFarrell;1100558]Hi all, i have a DOB input that I am trying to output to a textfield called "StarSign" The DOB works great, uploads to the database fine, What I would like to do is from the given DOB - Output the StarSign to a textfield called starsign. i have dob_y …

Member Avatar for wrivera
0
381
Member Avatar for Begjinner

[QUOTE=Begjinner;545756]aravelli, that works, thank you, but only for the first one containing the id. On some pages I have more links and now only the first one changes. this is what I have: [CODE] try{document.getElementById('contentbox a').style.color= "#d05048";}catch(err){};[/CODE] there is a try...cath function because some pages don't have the 'contentbox a' …

Member Avatar for wrivera
0
178
Member Avatar for tunde011
Member Avatar for tunde011
0
489
Member Avatar for Morty222

here you need to use the modulus operator so it would be like [CODE] if($i%2==0){ $color=black; else{ $color=red; } [/CODE]

Member Avatar for wrivera
0
77
Member Avatar for K?!

php uses the keyword this but does not use super. also, parent::method() works like super().method(). When accessing any methods or variables for php inside of the class you must reference using the this keyword as such [CODE]class test{ public $var public function tester($x){ $this->var=$x; } }[/CODE] when accessing methods or …

Member Avatar for wrivera
0
180

The End.