320 Posted Topics

Member Avatar for cmabill

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.

Member Avatar for cmabill
0
277
Member Avatar for monta2020
Member Avatar for ckdoublenecks

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]

Member Avatar for ko ko
0
249
Member Avatar for killerqb

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 } ?> …

Member Avatar for karthik_ppts
0
118
Member Avatar for kasxxiazexxi

[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 …

Member Avatar for tomato.pgn
0
218
Member Avatar for karthik_ppts

Hi Frendz, [INDENT]How to convert the direction in degrees to normal directions(North,East..) in php[/INDENT]

Member Avatar for karthik_ppts
0
226
Member Avatar for rpv_sen

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]

Member Avatar for rpv_sen
0
296
Member Avatar for Joshua Kidd

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]

Member Avatar for karthik_ppts
0
141
Member Avatar for branding4you

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" …

Member Avatar for branding4you
0
353
Member Avatar for karthik_ppts

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.

Member Avatar for karthik_ppts
0
161
Member Avatar for karthik_ppts

Hi Frendz, i received this error "Fatal error: Call to undefined function curl_init() in ....../xxxx.php But its working fine in other system.

Member Avatar for karthik_ppts
0
97
Member Avatar for karthik_ppts
Member Avatar for karthik_ppts
0
2K
Member Avatar for Dmennite

[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] …

Member Avatar for karthik_ppts
0
621
Member Avatar for karthik_ppts

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 …

Member Avatar for karthik_ppts
0
2K
Member Avatar for karthik_ppts

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. …

Member Avatar for karthik_ppts
0
1K
Member Avatar for karthik_ppts

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?

Member Avatar for karthik_ppts
0
1K
Member Avatar for karthik_ppts

Hi frendz, I need to calculate the decimal latitude and longitude value from the following latitude and longitude value. latitude 11006805N longitude 076577304E

Member Avatar for karthik_ppts
0
102
Member Avatar for karthik_ppts

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>"; } …

0
71
Member Avatar for karthik_ppts

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 …

0
80
Member Avatar for karthik_ppts

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.

Member Avatar for karthik_ppts
0
132

The End.