Delphi PHP Javascript HTML GetModuleHandle Delphi Networking DateTime Delphi Intranet email validation Random Number PHP Time Calculation Random file_exists Socket Programming array cookieEnabled getenv mail Knuth if idURI POST Method get current file TidHTTP URLEncode formatted date TidURI Referrer COMObj Class_HTMLDOcument ignore_user_abort IHTMLDocument2 include Ban IP address Content-Type LF CreateComObject max_execution_time mshtml Number Format Parameter Passing password array_count_values PHP array Formatted time string Calculator for loop form _POST Cardinal Endings Formatted date string else Disable Session Delphi Internet 암호화 GetImageLinks bcsub gmdate bcadd HTTP_REFERER

POST METHOD.ZIP

Delphi code to send data to web server based on POST method   (created at Mar 09, 2024)   75  

To send content using the POST method in Delphi, you can use the TIdHTTP component from the Indy library, which is a popular library for internet components in Delphi. Below is an example Delphi code snippet demonstrating how to send content using the POST...

PHP socket programming to get content with post method   (created at Oct 19, 2009)   52  

When you need to get content with POST method in PHP internal code, you need to get the desired result through alternate socket programming as below.Actually what I wanted is emailing through alternate server located in different domain, because the curren...

How to declare array in PHP like C/C++   (created at Oct 16, 2007)   101  

simple php array declaration: 'Do', 'Re', 'Me');//print out arrayprint_r($notes);?>

PHP date and time formatting   (created at Oct 16, 2007)   57  

The Smarty date_format function returns a formatted string showing date, time and/or seconds.index.php:assign('yesterday', strtotime('-1 day'));$smarty->display('index.tpl');?>index.tpl:{$smarty.now|date_format}{$smarty.n...

How to redirect browser in PHP ?   (created at Oct 16, 2007)   50  

Using the php header function, a browser can be redirected to another page. 

How to get current filename as variable ?   (created at Oct 15, 2007)   64  

Sometimes you need just the filename of the current script, without the path. This snippet does just that using the SCRIPT_NAME and explode function.

email validation, simple   (created at Oct 15, 2007)   56  

Validate an email address - returns TRUE or FALSE. Checks format only, does not use any networking functions to verify the account actually exists.

for loop - simple   (created at Oct 15, 2007)   91  

for loop - basic control structure. This example loops until the variable hits 10 and then breaks out. 10) {       break;   }   echo $i;}?>sample output :12345678910

form action - detect form post   (created at Oct 15, 2007)   64  

There are several ways to process a php form. This example looks for the existance (regardless of value) of the Submit _POST variable.got submission
";   

How to make random number ?   (created at Oct 15, 2007)   61  

Generate a random number using mt_rand. From the php documentation- "If called without the optional min, max arguments mt_rand() returns a pseudo-random value between 0 and RAND_MAX. If you want a random number between 5 and 15 (inclusive), for example, us...

How to check if a file exists ?   (created at Oct 15, 2007)   54  

To determine whether a file exists on the server, PHP has a simple function: file_exists.

How to include a file with error reporting ?   (created at Oct 15, 2007)   49  

Sometimes you want to be able to give some feedback if a PHP include has failed. Here is a version using the fopen command, which can search the include path.

PHP if...else... example   (created at Oct 15, 2007)   71  

Followings are the basic example of an if then else control structure.

PHP form handling example in single page   (created at Oct 15, 2007)   72  

This example shows a very simple form together with the form handling process on a single page.got submission
";   ech...

How to get reffering URL ?   (created at Oct 15, 2007)   49  

Grabs the referring URL - get the HTTP_REFERER and save it to a variable.code snippet:

How to convert formatted date time string to datetime?   (created at Oct 12, 2007)   71  

Whatever the formatted string is, strtotime() function convert the formatted date time string to datetime.Following example shows the simple reference can convert date time string whatever the formatted input is...function foo($formatted_time){  retur...

Is there URLEncode function in Javascript ?   (created at Oct 11, 2007)   54  

EncodeURI() is the answer. and followings are the usage example: