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

Hit counter updating once per IP - IP HIT COUNTER
I have a hit counter, for the amount of views on a tutorial.
It'll do the query and then do..

Echo-ing MySQL content and Keep Formatting?
I have data in my MySQL such as:

QuoteBlah blah

Blah blah

etc
but when i ech

Search function
I am looking for some guidance from the experts.

I am trying to create a search function. It

Exporting new records
Trying to figure out the best way to set this up.

People register my site.

Their prof

Rounding a number queried from a database
I know that to display a rounded number you just do echo "round($number)";. But how would

PHP, jAVASCRIPT setting input values, why isn't it working?
Hi:

I am calling this javascript:
<script language="javascript">

Calander Basic Spript help
hi, just starting out with PHP and have the following script:

<?php
//This gets t

help with mysql_error()
Hi,

I am trying to insert data into a table, but I am not able to insert it. I wanted to see

PHP Script runs on CLI but not through web browser
I am running into an issue that I just can't seem to find the answer to. I have a Windows Server 200

delete comma
HI,

How to delete "," at the end of the string.
Code: $match = 2009/02/03/a2corr

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