320 Posted Topics
Re: Why You can't try this code? [code=php] if ($mail_status) { header('location:thankyou.html'); } else { header('location:error.html'); } ?> [/code] and you can use your scripts in thankyou.html and error.htm. | |
Re: You have double [B]where[/B] in your sql.So replace this [CODE] $query = "SELECT invnum FROM oocust [B]Where WHERE[/B] payrec = 'R' AND pd = ' '"; [/CODE] with [CODE] $query = "SELECT invnum FROM oocust Where payrec = 'R' AND pd = ' '"; [/CODE] | |
Re: In if statement you should use relational operator([B]==[/B]) instead of assignment operator([B]=[/B]). So replace this line [CODE=php]<input type="checkbox" <?php if ($row['create_event'] = 1){ ?> checked="checked" value="check" <?php } ?> value="unchecked" name="option1" > Create Event<br>[/CODE] with this line [CODE=php]<input type="checkbox" <?php if ($row['create_event'] == 1){ ?> checked="checked" value="check" <?php } ?> … | |
Re: [QUOTE=kasxxiazexxi;1539910]I am using HTML for the contact form fields and I wish to redirected the inputs to another webpage and have it displayed there. Is there a way to do it with PHP? Thank you![/QUOTE] Yes.. You have to use form tag in your html form and specify the action … | |
Hi Frendz, [INDENT]How to convert the direction in degrees to normal directions(North,East..) in php[/INDENT] | |
Re: Yes, Use the parseFloat and Replace the following code [CODE=js]document.getElementById("thisamt").onblur = c;[/CODE] with [CODE=js]document.getElementById("thisamt").value= c;[/CODE] | |
Re: Just use this code to test your sql statement is correct. [code=php] echo $sql="DELETE FROM $tbl_name WHERE id='$id'"; $result=mysql_query($sql); [/code] | |
Re: Its using if statement [code=php] <select name = "fld_wherehear" id="fld_wherehear" > <option value = "0" >Select...</option> <option value = "1" <?php if($_POST["fld_wherehear"]=="1") echo "selected"; ?> >Internet</option> <option value = "2" <?php if($_POST["fld_wherehear"]=="2") echo "selected"; ?> >Newsletter</option> <option value = "3" <?php if($_POST["fld_wherehear"]=="3") echo "selected"; ?> >Friend</option> <option value = "4" … | |
Hi Frendz, I have a latitude and longitude points of particular place namely X. Now I want to check the given latitude and longitude point of a place namely Y is within a circumstance of a particular radius from that point X. How to check that? i'm using google map. | |
Hi Frendz, i received this error "Fatal error: Call to undefined function curl_init() in ....../xxxx.php But its working fine in other system. | |
How to get all the query-string parameters with php_self function? | |
Re: [QUOTE=Dmennite;1389691]I was under the impression that $_SERVER['PHP_SELF'] is a security issue leaving oneself open to XSS attacks.[/QUOTE] PHP_SELF exploits can be avoided by using the htmlentities() function. For example, the form code should be like this to avoid the PHP_SELF exploits: [code] <form name="test" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" method="post"> [/code] … | |
Hi Frendz, I want to read data from servers port. I checked the port manually with TCP IP listener application. Its working fine and i can receive data. Now i need to develop this function in PHP. For that i just connect the server with the port and ip using … | |
Hi Friends, I need to get the data from the port that sent by an external device connected to my server's IP. I found the data sent by the device in my server using the TCP Port listner . Now i need to get the data to store in mysql. … | |
i have connected an external device to my server. That device send some data through one port. Now how to read that data from port and store in mysql using php? | |
Hi frendz, I need to calculate the decimal latitude and longitude value from the following latitude and longitude value. latitude 11006805N longitude 076577304E | |
Hi Frendz, I need to create one socket programming to read data from port of my server using php and this is my code <?php $host = "192.168.1.5"; $port = 4321; set_time_limit(0); echo "Start to Create socket....<br>"; $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP) or die("create():".socket_strerror(socket_last_error($socket))); if($socket) { echo "Socket Created!<br>"; } … | |
Hi Frendz, This is my code to read data from port using php. <?php $host = "192.168.1.5"; $port = 4321; set_time_limit(0); echo "Start to Create socket....<br>"; $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP) or die("create():".socket_strerror(socket_last_error($socket))); if($socket) { echo "Socket Created!"; } echo "Start to Bind Socket....<br>"; $result = socket_bind($socket, $host, $port) or … | |
Hi All, How to read data from server using php? Actually i'm connecting an external device to my system. That device send some data to server via GPRS. But i dont know how to get/see that data from server? Please Help Me. |
The End.