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
Colombo
RidhMathraa ’26 🎶✨
Tmadhusanka
Updated:
Wednesday at 11:58 PM
Ad icon
Colombo
PXN V10 Pro Direct Drive Racing Wheel (Under Warranty)
Abdur Rahman
Updated:
Wednesday at 10:23 PM
Ad icon
USDT ණය සේවාව - USDT Loan Service
පුරවැසියා
Updated:
Wednesday at 4:54 PM
Ad icon
🎮 INDIAN PSN GIFT CARDS AVAILABLE NOW! 🎮
madukaperera
Updated:
Tuesday at 12:57 PM
🚀 Google AI PRO – 18 Months | Rs. 850 Only
lkkolla
Updated:
Monday at 4:56 PM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Software Development
PHP Help plz!! Small Error!
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="Ranhiru" data-source="post: 4517760" data-attributes="member: 17748"><p>I dunno it was working fine...and i did not change anything actually but suddenly this error keeps on coming... i dont know why!! please help!! <img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /> Im trying to such a simple thing! Display what was sent by a form! datz all!!</p><p></p><p>[CODE]</p><p><?php </p><p></p><p> $name = $_POST["txt_name"];</p><p> </p><p> </p><p>?></p><p></p><p><html></p><p></p><p><head> </p><p></p><p><title> Guest Boook</title></p><p></p><p></head></p><p></p><p><body></p><p></p><p> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"></p><p> </p><p> <center></p><p> Name : <input type="text" name="txt_name"> </input> </p><p> Email : <input type="text" name="txt_email"> </input></p><p> <br></p><p> <br></p><p></p><p> Comment</p><p> <br></p><p> </p><p> <textarea name="txt_comment" style="width : 75%" rows=10" ></textarea></p><p> </p><p></p><p> </p><p> <br></p><p> <br></p><p> <input type="submit" value="Submit"> </input></p><p> </p><p> </p><p> </center></p><p> </p><p> </p><p> </p><p> </p><p> </form></p><p> </p><p> </p><p> </p><p></p><p></p><p></body></p><p></p><p></p><p></p><p></html>[/CODE]</p><p></p><p></p><p>But when i try to run this in Wamp Server v2.0</p><p></p><p>i get the following error!</p><p></p><p><strong>Notice</strong>: Undefined index: txt_name in <strong>C:\WAMP\www\GuestBook.php</strong> on line <strong>6</strong></p><p><strong></strong></p><p><strong>Please HELP!!! <img src="/styles/default/xenforo/smilies/default/sad.gif" class="smilie" loading="lazy" alt=":(" title="Sad :(" data-shortname=":(" /></strong></p><p><strong></strong></p></blockquote><p></p>
[QUOTE="Ranhiru, post: 4517760, member: 17748"] I dunno it was working fine...and i did not change anything actually but suddenly this error keeps on coming... i dont know why!! please help!! :) Im trying to such a simple thing! Display what was sent by a form! datz all!! [CODE] <?php $name = $_POST["txt_name"]; ?> <html> <head> <title> Guest Boook</title> </head> <body> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> <center> Name : <input type="text" name="txt_name"> </input> Email : <input type="text" name="txt_email"> </input> <br> <br> Comment <br> <textarea name="txt_comment" style="width : 75%" rows=10" ></textarea> <br> <br> <input type="submit" value="Submit"> </input> </center> </form> </body> </html>[/CODE] But when i try to run this in Wamp Server v2.0 i get the following error! [B]Notice[/B]: Undefined index: txt_name in [B]C:\WAMP\www\GuestBook.php[/B] on line [B]6 Please HELP!!! :( [/B] [/QUOTE]
Insert quotes…
Verification
Nawa warak dahaya keeyada? (Namaya wadi kireema dahaya)
Post reply
Top
Bottom