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
https://forums.phpfreaks.com/topic/109967-solved-ltimagegt-has-no-value/
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">

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.