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

pageination not working right... coping images over 4 pages
Code: <?php //This code will obtain the required page number from the $_GET array. Note that

Extracting Long text from message class with parameters
Hi,

I would like to extract the long text from a message class. However, the long text ha

login and redirect
hello! can someone help me.. can you give me an idea.. I want to make a login page and redirects it

do while conditions
i want to display 6 images in a 2x3 table
now what would be the correct logic to
count that th

check if value exists
I have googled this for a while and I am getting lots of different results. Is there a standard meth

Simpler method of getting variables from mysql
Hi Guys,

I'm trying to streamline my CMS's code and as I was writing a new page it occured to

RTF fomatting to email content
Im trying to sen an email with content is picked up from a rtf-file (file_get_contents('*.rtf'). Mai

How to secure my login data to my database?
Hi there,

It may be a stupid question but I don't know how to secure my login data to my data

mysql timestamp manipulation
How could I use a timestamp (e.g 2009-10-30 13:20:35 ), and with php find out if it is:

from

problem with sql querry in php script
Hello guys,

What I want to do is I want to read out a csv file and then but te conent ot the

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