Page 3 of 3

Posted: Fri Nov 07, 2003 12:57 pm
by Mactek
Sure no problem, thanks!!

Code: Select all

<?php
	been submitted as it is more reliable than the submit button due 
	to browser implementations --> 
<input type="hidden" name="action" value="post" /> 
<input type="submit" name="submitcomputer" value="submit" /> 
</form> 

<?php 
} else { 

	//Connect to the database server 
	$dbcnx = @mysql_connect('localhost', 'root', 'wheelie'); 

	if (!$dbcnx) { 
	// parenthesis are uneccessary around echo statements, try not to have them 
	// spanning multiple lines as you were, it will cause issues with debuggin 
	// as
?>

Posted: Mon Nov 10, 2003 10:51 am
by Mactek
Any ideas Twiglemac?

Posted: Tue Nov 11, 2003 2:40 am
by twigletmac
Don't see anything there, could you post the five lines of PHP code before the HTML.

Mac

Posted: Tue Nov 11, 2003 9:24 am
by Mactek
There is only one line before the HTML:

Code: Select all

if (!isset($_POST['action'])) {

Posted: Tue Nov 11, 2003 9:30 am
by vigge89
don't you need an form when using $_POST?
from what i can see, you only got an </form>

Posted: Tue Nov 11, 2003 10:53 am
by Mactek
Vigge89, I have a full form but Twigelmac only wanted me to post a certian amount of the code. Please refer to page 1 for the full code. Thanks!