This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//PHP ACTION FORM | |
//conditional statement to execute block | |
//Example: if user selects 'witness type'(key) and 'friendly'(value), send query to DocCloud API | |
//QUESTIONS ON CONDITIONALS IN PHP: | |
// Knowing that the function: if (condition) { | |
// code to be executed if condition is true; | |
// if ($x == $y) { | |
//will this be read as: if x and y have same key/value pair, return true? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//PHP ACTION FORM | |
//conditional statement to execute block | |
//Example: if user selects 'witness type'(key) and 'friendly'(value), send query to DocCloud API | |
//QUESTIONS ON CONDITIONALS IN PHP: | |
// Knowing that the function: if (condition) { | |
// code to be executed if condition is true; | |
// if ($x == $y) { | |
//will this be read as: if x and y have same key/value pair, return true? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
## This function will read the contents of a text. However, needs to | |
## be passed through DocumentCloud first | |
<?php | |
$myfile = fopen("docCloudText.txt", "r") or die("Unable to open file!"); | |
echo fread($myfile,filesize("docCloudText.txt")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<form action="welcome.php" method="post"> | |
FirstName: <input type="text" name="firstname"><br> | |
LastName: <input type="text" name="lasatname"><br> | |
<input type="submit"> | |
</form> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
## This function will read the contents of a text. However, needs to | |
## be passed through DocumentCloud first | |
<?php | |
$myfile = fopen("docCloudText.txt", "r") or die("Unable to open file!"); | |
echo fread($myfile,filesize("docCloudText.txt")); |