Get Method

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Mactek
Forum Commoner
Posts: 28
Joined: Tue Oct 28, 2003 1:19 pm
Location: Boston

Post 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
?>
Mactek
Forum Commoner
Posts: 28
Joined: Tue Oct 28, 2003 1:19 pm
Location: Boston

Post by Mactek »

Any ideas Twiglemac?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Don't see anything there, could you post the five lines of PHP code before the HTML.

Mac
Mactek
Forum Commoner
Posts: 28
Joined: Tue Oct 28, 2003 1:19 pm
Location: Boston

Post by Mactek »

There is only one line before the HTML:

Code: Select all

if (!isset($_POST['action'])) {
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

don't you need an form when using $_POST?
from what i can see, you only got an </form>
Mactek
Forum Commoner
Posts: 28
Joined: Tue Oct 28, 2003 1:19 pm
Location: Boston

Post 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!
Post Reply