Why no - new record in database?

Codes here !

Moderators: macek, egami, gesf

Post Reply
User avatar
freshnet
php-forum Active User
php-forum Active User
Posts: 359
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada

Re: Why no - new record in database?

Post by freshnet » Sun Jul 29, 2012 3:45 am

There are a couple of bits of bad html in here that could be throwing off your browser

Code: Select all

<h1>Sammanställning</h1> </br>
should be

Code: Select all

<h1>Sammanställning</h1> <br/>

Code: Select all

<table border="1">
   </br>
should be

Code: Select all

<table border="1">
   <br/>

Code: Select all

 <P><a>STEG 1.</a></P>
should be

Code: Select all

 <p><a>STEG 1.</a></p>
You also have a couple of input tags that are not ended:

Code: Select all

<td><input type="text" name="lName" size="25">
should be

Code: Select all

<td><input type="text" name="lName" size="25"/>
I'd suggest fixing all your html and then see if the form works.

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Why no - new record in database?

Post by johnj » Sun Jul 29, 2012 5:59 am

where are you closing the form tag?

User avatar
freshnet
php-forum Active User
php-forum Active User
Posts: 359
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada

Re: Why no - new record in database?

Post by freshnet » Sun Jul 29, 2012 11:48 am

yes please post your 'fixed' html and we'll see if it's actually good. I'd suggest running it through an html validator. http://validator.w3.org/

NigelRen
php-forum Fan User
php-forum Fan User
Posts: 610
Joined: Fri Aug 05, 2011 9:53 am

Re: Why no - new record in database?

Post by NigelRen » Thu Aug 02, 2012 11:34 pm

Do you have LAMP configured on your machine? ( Have a look at http://www.linuxcandy.com/2012/05/how-t ... golin.html if your not sure )
You have to make sure that when using php you are fetching any files/scripts through a web server ( something like http://localhost/script.php ) and not simply selecting the file through something like Nautilus.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests