This shows you the differences between two versions of the page.
en:sedamo:web_address_input [2018/08/31 03:32] – created admin | en:sedamo:web_address_input [2018/09/01 23:29] (current) – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | === sedamo address input === | ||
+ | |||
+ | Embedding the sedamo address input on your webpage is just adding one line: | ||
+ | |||
+ | <file php php_sedamo_address_input_example_step_1.php> | ||
+ | <?php | ||
+ | $theURL = ' | ||
+ | // a = action = w | ||
+ | // u = user = testuser | ||
+ | // p = password = 12345678 | ||
+ | // l = language = en | ||
+ | // e = eMail = rawurlencode(" | ||
+ | // d = destination = rawurlencode(" | ||
+ | // s = stylefile = rawurlencode(" | ||
+ | ?> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | <iframe src="<? | ||
+ | <p> | ||
+ | Your browser does not support embedded frames. | ||
+ | <a href="<? | ||
+ | </p> | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Now let's read what the sedamo server POSTed to you: | ||
+ | |||
+ | <file php php_sedamo_address_input_example_step_2.php> | ||
+ | <?php | ||
+ | function array_item($ar, | ||
+ | { | ||
+ | if(array_key_exists($key, | ||
+ | return($ar[$key]); | ||
+ | } | ||
+ | $nameline1 = array_item($_POST, | ||
+ | $nameline2 = array_item($_POST, | ||
+ | $sedamo = array_item($_POST, | ||
+ | $sex = array_item($_POST, | ||
+ | $birthday = array_item($_POST, | ||
+ | $phone = array_item($_POST, | ||
+ | $email = array_item($_POST, | ||
+ | ?> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | <ul> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ul> | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | == Hints == | ||
+ | * The language parameter '' | ||
+ | * If the language parameter '' | ||
+ | * You can start with any username/ | ||