| | |
GET , POST and REQUET not working
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jan 2009
Posts: 6
Reputation:
Solved Threads: 1
Hi ,
I installed apache,php, mysql ( https://help.ubuntu.com/community/ApacheMySQLPHP )
After installing when i submit the form i can't get the form values. all values r empty.
plz help me to resolve this problem?
I installed apache,php, mysql ( https://help.ubuntu.com/community/ApacheMySQLPHP )
After installing when i submit the form i can't get the form values. all values r empty.
plz help me to resolve this problem?
You might want to show us some code, and use code tags when you do
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
•
•
Join Date: Jan 2009
Posts: 6
Reputation:
Solved Threads: 1
Hi,
Thanks for your reply.
plz check the below simple code.. i can't get values from $_POST & $_REQUEST
Thanks for your reply.
plz check the below simple code.. i can't get values from $_POST & $_REQUEST
PHP Syntax (Toggle Plain Text)
<?php print "<pre>"; print_r($_POST); print_r($_REQUEST); print "</pre>"; print "<form action='' method='post'> <input type='text' name='inputname'> <input type='submit' name='test'> </form>";
Last edited by arajapandi; Jul 16th, 2009 at 11:53 pm.
•
•
Join Date: Jul 2004
Posts: 234
Reputation:
Solved Threads: 8
You need to insert url for form action.
php Syntax (Toggle Plain Text)
<?php print "<pre>"; print_r($_POST); print_r($_REQUEST); print "</pre>"; print "<form action='<destination-url>.php' method='post'> <input type='text' name='inputname'> <input type='submit' name='test'> </form>"; ?>
•
•
Join Date: Jul 2004
Posts: 234
Reputation:
Solved Threads: 8
Copy the following code into the file called "sample.php" It should work.
php Syntax (Toggle Plain Text)
<?php print "<pre>"; print_r($_POST); print_r($_REQUEST); print "</pre>"; print "<form action='sample.php' method='post'> <input type='text' name='inputname'> <input type='submit' name='test'> </form>"; ?>
•
•
Join Date: Jul 2009
Posts: 53
Reputation:
Solved Threads: 1
here, try this sample...
********this is your index.php
*******this one's your welcome.php
********this is your index.php
html Syntax (Toggle Plain Text)
<form action="welcome.php" method="post"> Name: <input type="text" name="fname" /> Age: <input type="text" name="age" /> <input type="submit" /> </form>
*******this one's your welcome.php
php Syntax (Toggle Plain Text)
Welcome <?php echo $_POST["fname"]; ?>!<br /> You are <?php echo $_POST["age"]; ?> years old. </form>
Last edited by peter_budo; Jul 17th, 2009 at 2:57 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
![]() |
Similar Threads
- Javascript not working in firefox (JavaScript / DHTML / AJAX)
- AJAX Not working with IE6-IE8 Browsers (JavaScript / DHTML / AJAX)
- $_GET['id'] is not working????? (PHP)
- javascript not working for firefox! (JavaScript / DHTML / AJAX)
- Post edits - not showing up (DaniWeb Community Feedback)
- Built Computers Will Power Up But Not Post (Troubleshooting Dead Machines)
- IE not working right. Virus? (Viruses, Spyware and other Nasties)
- Internet Explorer Running SLOW (Web Browsers)
- Double Linked Lists and Functions required (C++)
- homepage set to res://jlxzg.dll/index.html#96676 (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: How insert image into mysql database and retrieve
- Next Thread: Paging in array..!!
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube






