Click here to Skip to main content
15,887,135 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
GeneralRe: Suggestions on format - XML, JSON, XXX... Pin
DaveyM693-Feb-12 21:06
professionalDaveyM693-Feb-12 21:06 
GeneralRe: Suggestions on format - XML, JSON, XXX... Pin
Mohibur Rashid3-Feb-12 22:43
professionalMohibur Rashid3-Feb-12 22:43 
QuestionHandling HTTP Errors Pin
awedaonline26-Jan-12 2:48
awedaonline26-Jan-12 2:48 
AnswerRe: Handling HTTP Errors Pin
Graham Breach26-Jan-12 3:41
Graham Breach26-Jan-12 3:41 
Questionchange address link Pin
Member 790448226-Jan-12 0:38
Member 790448226-Jan-12 0:38 
QuestionHow can i add simple texteditor to my application Pin
DeepthiTanguturi25-Jan-12 22:17
DeepthiTanguturi25-Jan-12 22:17 
AnswerRe: How can i add simple texteditor to my application Pin
thatraja26-Jan-12 0:25
professionalthatraja26-Jan-12 0:25 
QuestionI want to clear something about PHP and HTML (newbie) Pin
flashery23-Jan-12 20:46
flashery23-Jan-12 20:46 
If you run this in a browser you can see the form. I want to clarify how could that be happen the form is inside the if statement. Is there any way you can hide html code in PHP. The html code will be executed if the "if" statement is true.
PHP
<?php
	require "../utility/connection.php";
	$submit = true;
	if(isset($_POST['submit'])){
		
		$query = mysqli_query($connect, 'SELECT * FROM email_accounts');
		
	}else{
		
	}
	if($submit = true){?>

			<form method="post" action=" .<?php echo $_SERVER['PHP_SELF']; ?> ">
			  <label for="subject">Subject:</label>
			  <input type="text" id="subject" name="subject" value="<?php echo $subject; ?>" />
			  <br  />
			  <br  />
			  <label for="message_body">Say something:</label>
			  <textarea id="message_body" name="message_body"><?php echo $msg_body;?></textarea>
			  <br  />
			  <input type="submit" id="submit" name="submit" value="Send Email" />
			</form>;
	<?php
	}
?>

AnswerRe: I want to clear something about PHP and HTML (newbie) Pin
Graham Breach23-Jan-12 22:32
Graham Breach23-Jan-12 22:32 
GeneralRe: I want to clear something about PHP and HTML (newbie) Pin
flashery23-Jan-12 22:37
flashery23-Jan-12 22:37 
GeneralRe: I want to clear something about PHP and HTML (newbie) Pin
Jon Heather25-Jan-12 9:40
Jon Heather25-Jan-12 9:40 
AnswerRe: I want to clear something about PHP and HTML (newbie) Pin
markkuk24-Jan-12 0:52
markkuk24-Jan-12 0:52 
GeneralRe: I want to clear something about PHP and HTML (newbie) Pin
flashery24-Jan-12 1:11
flashery24-Jan-12 1:11 
AnswerRe: I want to clear something about PHP and HTML (newbie) Pin
Necron81-Feb-12 5:18
Necron81-Feb-12 5:18 
Question2 outta 3 ain't bad....but why is ftp_put() failing...? Pin
cjoki23-Jan-12 10:30
cjoki23-Jan-12 10:30 
AnswerRe: 2 outta 3 ain't bad....but why is ftp_put() failing...? Pin
User 171649223-Jan-12 11:50
professionalUser 171649223-Jan-12 11:50 
GeneralRe: 2 outta 3 ain't bad....but why is ftp_put() failing...? Pin
cjoki27-Jan-12 4:51
cjoki27-Jan-12 4:51 
QuestionA form data with cascading dropdown and photo for upload Pin
awedaonline23-Jan-12 4:03
awedaonline23-Jan-12 4:03 
AnswerRe: A form data with cascading dropdown and photo for upload Pin
Mohibur Rashid24-Jan-12 22:34
professionalMohibur Rashid24-Jan-12 22:34 
GeneralRe: A form data with cascading dropdown and photo for upload Pin
awedaonline25-Jan-12 21:43
awedaonline25-Jan-12 21:43 
QuestionPHP & JavaScript integration Pin
MacRaider423-Jan-12 1:53
MacRaider423-Jan-12 1:53 
AnswerRe: PHP & JavaScript integration Pin
Graham Breach23-Jan-12 2:37
Graham Breach23-Jan-12 2:37 
GeneralRe: PHP & JavaScript integration Pin
MacRaider423-Jan-12 2:49
MacRaider423-Jan-12 2:49 
GeneralRe: PHP & JavaScript integration Pin
Graham Breach23-Jan-12 3:55
Graham Breach23-Jan-12 3:55 
GeneralRe: PHP & JavaScript integration Pin
MacRaider423-Jan-12 4:45
MacRaider423-Jan-12 4:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.