Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form problem

Status
Not open for further replies.

nook6

Programmer
Dec 18, 2002
24
GB
Hi

In one of the subs in my script i have this form.

<FORM ACTION=$ENV{'SCRIPT_NAME'} METHOD=POST>
<input TYPE=hidden NAME=action VALUE=someplace>
<INPUT TYPE=SUBMIT VALUE=&quot;go to someplace&quot;>
</form>

But it doesnt work it keeps going to the main page of the script.

But if i put a text link in like this.

<a href=$ENV{'SCRIPT_NAME'}?action=someplace>Go to someplace</a>

That works perfectly Can anyone see why?

Nook6
 
Hi

Dont worry i have sorted it and if anyone is interested it is because i had tow of these lines in it.

local %form = &get_form_data;


thats what was causing the error.

Nook6
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top