Jump to content

[SOLVED] Forms


Leeder

Recommended Posts

I have two pages, 1 & 2.

 

If 1 contains:

 

<form action="2.php" method="get">
<input type="text" maxlength="10" name="firstfield" />
<br /><br />
<input type="text" maxlength="10" name="secondfield" />
<br /><br />
<input type="submit" value="enter">

 

And I submit the form, 'firstfield' & 'secondfield' should be sent no problem, with the url being '2.htm?firstfield=enteredvalue&secondfield=anothervalue'.

 

Can I manually type in that url and on 2 echo $_GET['firstfield'] (Or the other fields I used), even though I didn't submit a form?

Link to comment
https://forums.phpfreaks.com/topic/45416-solved-forms/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.