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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form

Status
Not open for further replies.

novice2004

Programmer
Feb 2, 2004
62
US
I have php generated html,javascript.

print("<FORM NAME=\"form1\" ID=\"form1\" action=\"Layout.php\" METHOD=\"post\" >");



print("<a href=\"javascript:document.form1.submit()\" >GO</a>");


Can somebody tell me please why when I click "GO" I get
"Error on Page"?
Thank you.
 
What is the text of the error? What browser are you using?

Try:
Code:
print("<a href=\"javascript:document.forms['form1'].submit()\" >GO</a>");

--Chessbot

"So it goes."
Kurt Vonnegut, Slaughterhouse Five
 
You must be using a non-IE browser then.

No problem.

--Chessbot

"So it goes."
Kurt Vonnegut, Slaughterhouse Five
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top