473,414 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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


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
Jul 23 '05 #1
2 1389
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).

Jul 23 '05 #2
Lee" <RE**************@cox.net> wrote in message
news:ck********@drn.newsguy.com...
Michael said:
Now on the photo.htm page the "MODEL" (in this case) is europe and will showeurope.gif

What I am looking for is how to check to see if "MODEL" is blank. If it is Iwant 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).


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
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: JDS | last post by:
Hi, all. I'd like to do the following, preferably *without* resorting to JavaScript: I have a long, dynamically-generated form questionnaire. Not all of the form fields are dynamically...
4
by: Semi Head | last post by:
Hello folks, I'm looking for a script to validate a specific number value in a standard form input field. An example would be, if someone enters a number into a form input, I want the script to...
1
by: Monte Chan | last post by:
Hi all, I have the following codes, <script language="JavaScript"> function check_stuff(field) { alert("blank out the field now"); field.value = ""; } </script>
5
by: Clive Backham | last post by:
I'm having trouble with Instant Payment Notification on PayPal. One of the forms that they generate, which invokes one of my scripts, has a submit button with a blank name. The HTML fragment is...
8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
0
by: WillG | last post by:
Hi, I have spent most of the afternoon looking for what is probably a really simple solution. I am trying to add a checkbox to a form but I can't figure out how to do it. I basically want to add a...
10
by: Michael117 | last post by:
Hey guys, I'm pretty new here and I need some help. What I want to do is very easy. I have a webpage (<Link removed>) that has a form on it and I want the information that is submitted on the...
3
by: jambonjamasb | last post by:
Hi I have two tables: email_tbl Data_table Data table is is used to create a Form Data_form
6
by: smk17 | last post by:
I've spent the last few minutes searching for this question and I found an answer, but it wasn't quite what the client wanted. I have a simple online form where the user needs to fill out five...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.