Blank form field sent (sorry in advance if already asked but tired of looking)

M

Michael

All,

I have a form send a variable to another page. Based on the variable the
page will show a different image.

I.E.
<form METHOD="POST" ACTION="http://mysite.com/photo.htm">
<input type="hidden" name="MODEL" value="europe">
<input type="submit" class="submitphoto" value="View Europe">
</form>

Now on the photo.htm page the "MODEL" (in this case) is europe and will show
europe.gif

What I am looking for is how to check to see if "MODEL" is blank. If it is I
want them to be shown a link, not a blank page with an image outline
(missing because the model field would be blank and the page would try to
show " .gif".

Ideas? (or pointer to a place where I should be looking)...

Thank you,

Mike
 
L

Lee

Michael said:
All,

I have a form send a variable to another page. Based on the variable the
page will show a different image.

I.E.
<form METHOD="POST" ACTION="http://mysite.com/photo.htm">
<input type="hidden" name="MODEL" value="europe">
<input type="submit" class="submitphoto" value="View Europe">
</form>

Now on the photo.htm page the "MODEL" (in this case) is europe and will show
europe.gif

What I am looking for is how to check to see if "MODEL" is blank. If it is I
want them to be shown a link, not a blank page with an image outline
(missing because the model field would be blank and the page would try to
show " .gif".

Is the photo.htm page a static web page containing Javascript
to show the selected image?
If so, that's where the change needs to be made, so that's what
you should be showing us (the relevant code, or the URL of the
actual page).
 
M

Michael

Lee said:
Michael said:

Is the photo.htm page a static web page containing Javascript
to show the selected image?
If so, that's where the change needs to be made, so that's what
you should be showing us (the relevant code, or the URL of the
actual page).

Okay... You are correct... I should have approached the question from the
photo.htm page perspective.

The photo.htm page simply has ONLY:

<font color="red" size="4">%model%</font><br>
<img src="%model%.gif"><br>

What I am attempting is if %model% is not passed then the page shows a link.
In other words... the page will always have the word "%model%", if the page
is called up from anything other then the original page that passes a
variable.
If the original page is the one calling photo.htm page then the %model% will
be replaced with something else.

So I am looking for a way to find %model% on a page... IF it exists then
show a link for them to go back to the original page...

Sorry if I typed to fast and omitted a few facts...

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top