| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #2 (permalink) |
| Senior Member | This would be form.html Code: <form name="checker" method="POST" action="domain.com/check.php"> <p>Username: <input type="text" name="username" size="20" value="<?php echo $username; ?>"><br> <input type="submit" value="Check" name="doit"></p> </form> PHP Code: |
| |
| | #3 (permalink) |
| ₪NamePros Elite™ | remember to connect to a DB first m8, you need to use Code: mysql_connect('localhost', 'mydb', 'mypass');
__________________ •• PolurNET Communications •• Avoid the Freeze, Enjoy the Breeze! = A very special day, February 12th = Proudly #1 on NamePros and WebHostingJury for over 3 years! ||LawPoint.org •• GREAT UK HOSTING DEALS NOW AT: ExcellentHost.com •• |
| |
| | #4 (permalink) | |
| québécois libre | Hi Crusader, Why are you checking for <? and ?> ? PHP Code: $username = addslashes($username); With your code I could post in the username field something like '; DELETE FROM usernames And break you Matt Quote:
| |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |