post to self


Posted on 16th Feb 2014 07:03 pm by admin

Trying to get my form to submit to itself. However I am also trying to use an image for my submit button, when I set the type='image' it will not submit to itself. Can someone help me figure out why?

my button code:
<input type='submit' name='submit' value='submit' src='img/button_add.gif' width='64' height='25' class='outline' onmouseover="javascript:this.src='img/button_add2.gif';" onmouseout="javascript:this.src='img/button_add.gif';">

my if:

if( isset($_POST['submit']))


form:
Code: <form method='post' action="<?php echo $_SERVER["PHP_SELF"]; ?>" name='mailcheck' id='form_id'>

Everything works well if I don't post to self so I can always do that

No comments posted yet

Your Answer:

Login to answer
323 Like 22 Dislike
Previous forums Next forums
Other forums

Wrong Info sent Using $get in form
Hi i have this code that i tried to make to send some info from one page to aother with lots of ppls

UDP server recvfrom() always returns -1? :(
Hello all,
I am getting a very strange error in my code :( I am writing a server application in C

Must be a string? Huh, what? HELP?
with the following script, I get
Fatal error: Property name must be a string in /home/content/e/

Mail sending is slow on server
Why mail is taking time to be send on apache-linux server

Help with translating C code into assembler code
Hi im doing a project that moves a robot around a maze avoiding walls and need some help with conver

Help? Need help on project with templates involving mysql and php.
I'm having a hard time explaining what I want but basically here is what I have in place:

-Da

links using header()
Hi All

I'm not sure where to ask for help on this but I hope someone can offer some. I'm at

CE 7.1 and External GIS integration
Hi All,

We want to develop an application on CE 7.1 which uses GIS features from an exter

Number Format
Hi All,

I have number '000000000050085' I want to format it to 500.85 Can any one give me

Display certain image depending on time of year
Hi, I am new to these forums and would really appreciate some advice on a piece of coding I have don

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash