Be a Supporter!

PHP Problem

  • 282 Views
  • 2 Replies
New Topic Respond to this Topic
bumcheekcity
bumcheekcity
  • Member since: Jan. 19, 2003
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
PHP Problem 2004-08-28 13:31:53 Reply

Dead quick one here, guys

echo "<form action='bumcheekcities.php?action=profile' method='GET'><p>Enter the username of the person whose profile you would like to see:</p><input type='textbox' name='username'><input type='submit' value='Submit'></form>";

This gets me to the page: http://www.bumcheekcity.com/bu...ekcity&Submit=Submit+Query

And it's on a page that's included into bumcheekcities.php.

bumcheekcity
bumcheekcity
  • Member since: Jan. 19, 2003
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
Response to PHP Problem 2004-08-28 13:33:22 Reply

Sorry... clicked the button too early...

How do I make it get to tha page

http://www.bumcheekcity.com/bu...file&username=bumcheekcity

IF you know what I mean.

pieoncar
pieoncar
  • Member since: Apr. 21, 2004
  • Offline.
Forum Stats
Member
Level 53
Blank Slate
Response to PHP Problem 2004-08-30 03:04:24 Reply

action=profile should be automatically GOT(?) by the browser... So what you want to do is
<form action="bumcheekcities.php" method="GET"> <input type="hidden" name="action" value="profile"> p>Enter the username of the person whose profile you would like to see:</p><input type='textbox' name='username'><input type='submit' value='Submit'></form>";