Re: [PHP] Link acting as a submit button

2003-07-25 Thread Curt Zirzow
* 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

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
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 =

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
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

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Comex
[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

RE: [PHP] Link acting as a submit button

2003-07-25 Thread 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 need to make the submit button

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Comex
[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

Re: [PHP] Link acting as a submit button

2003-07-25 Thread skate
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

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Comex
[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

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Ray Hunter
(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:

RE: [PHP] Link acting as a submit button

2003-07-25 Thread 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, these questions are now

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
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

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Jay Blanchard
[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

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Ray Hunter
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

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
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

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Jim Lucas
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

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Comex
[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,

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Ray Hunter
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

RE: [PHP] Link acting as a submit button

2003-07-24 Thread Matt Palermo
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

RE: [PHP] Link acting as a submit button

2003-07-24 Thread Jeff Harris
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