Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
iphone x used
AssassiN1
Updated:
Yesterday at 10:30 PM
කිතුල් තලප
Manoj Suranga Bandara
Updated:
Saturday at 7:04 PM
Ad icon
ව්යාපාර, Tuition පන්ති සහ Personal Portfolios සඳහා Web Setup එකක් රු. 9,099/- කට (වාර්ෂික renewal ර
thathsilura
Updated:
Thursday at 6:17 PM
AWS Certified Solutions Architect-Associate + AWS Certified Cloud Practitioner
Sanjeewani95
Updated:
Aug 19, 2026
🚀 එක පැකේජ් එකයි - මාසෙටම Unlimited Internet! 🌐
sayuru bandara
Updated:
Aug 18, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
php simple insert form help need
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="chamarams" data-source="post: 15080177" data-attributes="member: 145399"><p><span style="font-size: 12px"><span style="color: Purple">i'm newbie for PHP and just try simple form but have issue with insert.php page first of all my db consist of 4 record (id ,name ,phonenumber,date) the id column is auto increment page .</span></span></p><p><span style="font-size: 12px"><span style="color: Purple"></span></span></p><p><span style="font-size: 12px"><span style="color: Purple">i create to display information to page call index php it's work well but the problem is insert.php page that page doesn't load and can not inset value and go to see new insert value in index php page</span></span></p><p></p><p>[PHP] <?php</p><p> if(isset($_post['name'])){</p><p> $mysqli = new mysqli('localhost','root','','interdet');</p><p> $statement =$mysqli->prepare("INSERT INTO detectives(name)VALUES(?,?)";</p><p> $statement->bind_param('ss',$_POST['name']);</p><p> $statement->execute();</p><p> echo "Done! <a href='index.php'>Go here see new detective </a>";</p><p></p><p> }</p><p> else {</p><p> ?></p><p> <form action="insert.php" method="POST"></p><p> <p>Name : <input type="text" name="name" /> <P></p><p> <p><input type="submit"/></p></p><p> </form></p><p><?php } ?>[/PHP]</p></blockquote><p></p>
[QUOTE="chamarams, post: 15080177, member: 145399"] [SIZE="3"][COLOR="Purple"]i'm newbie for PHP and just try simple form but have issue with insert.php page first of all my db consist of 4 record (id ,name ,phonenumber,date) the id column is auto increment page . i create to display information to page call index php it's work well but the problem is insert.php page that page doesn't load and can not inset value and go to see new insert value in index php page[/COLOR][/SIZE] [PHP] <?php if(isset($_post['name'])){ $mysqli = new mysqli('localhost','root','','interdet'); $statement =$mysqli->prepare("INSERT INTO detectives(name)VALUES(?,?)"; $statement->bind_param('ss',$_POST['name']); $statement->execute(); echo "Done! <a href='index.php'>Go here see new detective </a>"; } else { ?> <form action="insert.php" method="POST"> <p>Name : <input type="text" name="name" /> <P> <p><input type="submit"/></p> </form> <?php } ?>[/PHP] [/QUOTE]
Insert quotes…
Verification
Hathara warak wissa keeyada? (Hathara wadi karanna 20)
Post reply
Top
Bottom