• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

Can this be done?

Here's my code:

<table align="center" border="0">
	<A HREF="inventory_display.php?Edit=Yes&id=<?php echo $previous_id; ?>"><IMG SRC="images/previous_arrow.jpg" border="0"></a>
	<td class="top_header"><input type="hidden" name="id" value="<?php echo $bruce_row['id']; ?>">
	<input type="submit" value="submit">
	<input type="image" name="submit_next" src="images/next_arrow.jpg" value="Y">

Open in new window

I want to create a dynamic where when the user hits "next," the form info is submitted and the user is routed to the next product in the database. I also want the option to exist to simply click "submit" and not be routed to the next product.

What you see above is my two "submit" options. One has a hidden field that I'm wanting to be recognized as my code's "cue" to run the script and then forward the user to the next product.

It's not working. Here's what I'm attempting to do to "field" the hidden value associated with the "next" image:

echo "yes";

Open in new window

Regardless if I hit the "submit" button or the "next" button, I can never get "yes" to show up.

What am I missing?
1 Solution
Jerry MillerCommented:
You have a typo in the second part, that may be your issue. It is never seeing the value in 'submit_nex'.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now