* Thus wrote Matt Palermo ([EMAIL PROTECTED]):
I am trying to create a submit button out of a hyperlink using the
following
code:
(this is in a file called index.html)
A href=javascript:go_where_my_variable_says('this.php');this
page/a
SCRIPT LANGUAGE=JavaScript
!--
function
I have tried this method as well, but I still seem to get the same error. I
have the form tag put in there and everything, with this bit of script inside
the tags, but still no luck. Is there an easier way to accomplish what I want
to do? Please let me know if there is. Thanks.
Matt
=
suggestions?
Thanks for your help,
Matt
-Original Message-
From: Jim Lucas [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 6:40 PM
To: Matt Palermo
Subject: Re: [PHP] Link acting as a submit button
Your javascript is wrong.
change this
document.forms[0].action = where
[EMAIL PROTECTED]
Matt Palermo:
I just remembered (I'm not sure if it makes a difference) that I am
using frames on this page. Does this matter at all? Thanks.
Matt
No, it doesn't... well it shouldn't anyway. Check the source code of the
outputted page. Is it exactly what you want it to
Actually, I found out what the problem is. I have a normal submit button in
the same page, however when I take out the submit button, the javascript code
works fine. When I put the submit button back in, I get the error again. Is
there a fix for this, or do I need to make the submit button
[EMAIL PROTECTED]
Matt Palermo:
Actually, I found out what the problem is. I have a normal submit
button in the same page, however when I take out the submit button,
the javascript code works fine. When I put the submit button back
in, I get the error again. Is there a fix for this, or do I
what is the javascript on it? sorry, missed the start of the thread...
- Original Message -
From: Matt Palermo [EMAIL PROTECTED]
To: Comex [EMAIL PROTECTED]; php-general [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 1:05 PM
Subject: RE: [PHP] Link acting as a submit button
Actually, I
[EMAIL PROTECTED]
skate:
what is the javascript on it? sorry, missed the start of the thread...
http://tinyurl.com/i0un
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(this is in a file called index.html)
A href=javascript:go_where_my_variable_says('this.php');this
page/a
try this
a href=javascript: go_where_my_variable_says('?php echo
$PHP_SELF;?');this page/a
--
BigDog
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Fri, 2003-07-25 at 05:30, Matt Palermo wrote:
I just remembered (I'm not sure if it makes a difference) that I am using
frames on this page. Does this matter at all? Thanks.
Yes it matters tons with the javascript call.
Here is some info on it...however, these questions are now
I found out that it works fine without the submit button that I had in there.
When I take the submit button out, it works, if I put it back in there I get
the error message again.
Any ideas?
Matt
= Original Message From [EMAIL PROTECTED] =
On Fri, 2003-07-25 at 05:30, Matt Palermo
[snip]
I found out that it works fine without the submit button that I had in
there.
When I take the submit button out, it works, if I put it back in there I
get
the error message again.
Any ideas?
[/snip]
Are you naming the submit buttons? Not just value, but id or name? You
must keep them
Why do you have a submit button and a link to submit the form. Dont u
want them to use the submit button for the form?
--
BigDog
On Fri, 2003-07-25 at 09:02, Jay Blanchard wrote:
[snip]
I found out that it works fine without the submit button that I had in
there.
When I take the submit
Okay, I got it to work. I just put the id parameter in the submit button
tag and it works fine now. Thanks for all your help guys...
= Original Message From [EMAIL PROTECTED] =
Why do you have a submit button and a link to submit the form. Dont u
want them to use the submit button for
errors... Got any more suggestions?
Thanks for your help,
Matt
-Original Message-
From: Jim Lucas [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 6:40 PM
To: Matt Palermo
Subject: Re: [PHP] Link acting as a submit button
Your javascript is wrong.
change
[EMAIL PROTECTED]
Ray Hunter:
On Fri, 2003-07-25 at 05:30, Matt Palermo wrote:
I just remembered (I'm not sure if it makes a difference) that I am
using frames on this page. Does this matter at all? Thanks.
Yes it matters tons with the javascript call.
Here is some info on it...however,
Good point...thanks for catching that
I usually link into forms from other frames if I dont have a submit
button in that form.
--
BigDog
On Fri, 2003-07-25 at 15:49, Comex wrote:
[EMAIL PROTECTED]
Ray Hunter:
On Fri, 2003-07-25 at 05:30, Matt Palermo wrote:
I just remembered (I'm not sure
Fixing the javascript that you specified still gave me the same
errors... Got any more suggestions?
Thanks for your help,
Matt
-Original Message-
From: Jim Lucas [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 6:40 PM
To: Matt Palermo
Subject: Re: [PHP] Link acting as a submit
perfectly fine if I have it an html
| document.
|
| Anyone got any ideas?
|
| Thanks,
| Matt
|
|From: Jim Lucas [mailto:[EMAIL PROTECTED]
|Sent: Thursday, July 24, 2003 6:40 PM
|To: Matt Palermo
|Subject: Re: [PHP] Link acting as a submit button
|
|Your javascript is wrong.
|
|change
19 matches
Mail list logo