Jump to content

[SOLVED] <image> has no value?


otuatail

Recommended Posts

if i have the following in my first page

 

<input type="submit" name="submit" value="x">

<input type="submit" name="submit" value="y">

 

I can sy on the next page

If($_POST['submit'] == x)

 

but if I use

<input type="image" name="LogOn" value="LogOn" src="images/Submit.gif" alt="Log On">

I can't do this as Value has no value in this case?

 

Desmond.

 

Link to comment
Share on other sites

This does not address the issue.

 

if I have 2 buttons on a form and the form is posted to page2.php how can I do an if statment on it

 

<input type="image" name="button1" src="images/Update_beer.gif" alt="Update_beer">

<input type="image" name="button2" src="images/Update_lemmonade.gif" alt="Update_lemmonade">

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.