PC Review


Reply
Thread Tools Rate Thread

creating a link to a form

 
 
Mike Macgowan
Guest
Posts: n/a
 
      21st Oct 2003
Hi all,

I would like to create a link on my page that sends a zip code and radius to
the following form:

<form method="POST" action="http://zipfind.net/scripts/miles.exe">
</TD>
<TD>
<FONT FACE="MS Sans Serif, Arial, Helvetica" SIZE="1"><B>ZIP
Code:</B></font><BR>
<INPUT Class="Text" NAME="102" VALUE="" TYPE="TEXT" SIZE="7"
MAXLENGTH="5">
</td>
<TD>
<FONT FACE="MS Sans Serif, Arial, Helvetica"
SIZE="1"><B>Radius:</B></font><BR>
<INPUT TYPE="text" NAME="103" VALUE="" SIZE="3" MAXLENGTH="3"
CLASS="Text">
</TD> <td>
<INPUT NAME="1002" TYPE="SUBMIT" VALUE="Find Zip Codes"
Class="Submit">
</td>
<TD></form>

I tried http://http://zipfind.net/scripts/mi...02=80241&103=5 to
submit a zip of 80241 and a radius of 5, but it does not return a valid
page. Can anyone decipher what I am doing wrong?

Thanks in advance,

hyperless in denver


 
Reply With Quote
 
 
 
 
Mike Macgowan
Guest
Posts: n/a
 
      21st Oct 2003
Thanks Jim.

I don't have the option of changing the form as I am passing the data to the
form. I was hoping I could get the data put together so that the form would
accept it. I have inquired into the site about customizing the database. I
appreciagte your help and anyone else that may have additiional ideas.


"Jim Buyens" <(E-Mail Removed)> wrote in message
news:08fa01c39791$971f0330$(E-Mail Removed)...
> If you can make this an ASP page, code your two <input>
> tags:
>
> <INPUT Class="Text" NAME="102"
> VALUE="<%=request("102")%>" TYPE="TEXT" SIZE="7"
> MAXLENGTH="5">
>
> and
>
> <INPUT TYPE="text" NAME="103"
> VALUE="<%=request("102")%>" SIZE="3"
> MAXLENGTH="3" CLASS="Text">
>
> If you can't use ASP, add this code to the <head> section
> of your page.
>
> <script>
> function qsobj (){
> var qvbl;
> var qstring = "" + document.location.search.substring(1);
> if (qstring != ""){
> var qpairs = qstring.split("&");
> for (i=0; i < qpairs.length; i++) {
> qvbl = qpairs[i].split("=");
> this["" + qvbl[0]] =
> unescape(qvbl[1].replace("+"," "));
> }
> }
> }
> function getQS(avbl){
> if (qstr[avbl] == null){
> return "";
> }else{
> return qstr[avbl];
> }
> }
> var qstr = new qsobj();
> </script>
>
> and then code your form fields like this:
>
> <script>
> document.write("<INPUT Class='Text' NAME='102' VALUE='" +
> getQS("102") +
> "' TYPE='TEXT' SIZE='7' MAXLENGTH='5'>");
> </script>
>
> and
>
> <script>
> document.write("<INPUT Class='Text' NAME='103' VALUE='" +
> getQS("103") +
> "' TYPE='TEXT' SIZE='3' MAXLENGTH='3'>");
> </script>
>
> Jim Buyens
> Microsoft FrontPage MVP
> http://www.interlacken.com
> Author of:
> *------------------------------------------------------*
> |\----------------------------------------------------/|
> || Microsoft Office FrontPage 2003 Inside Out ||
> || Microsoft FrontPage Version 2002 Inside Out ||
> || Web Database Development Step by Step .NET Edition ||
> || Troubleshooting Microsoft FrontPage 2002 ||
> || Faster Smarter Beginning Programming ||
> || (All from Microsoft Press) ||
> |/----------------------------------------------------\|
> *------------------------------------------------------*
>
>
>
>
> >-----Original Message-----
> >Hi all,
> >
> >I would like to create a link on my page that sends a

> zip code and radius to
> >the following form:
> >
> ><form method="POST"

> action="http://zipfind.net/scripts/miles.exe">
> > </TD>
> > <TD>
> > <FONT FACE="MS Sans Serif, Arial, Helvetica"

> SIZE="1"><B>ZIP
> >Code:</B></font><BR>
> > <INPUT Class="Text" NAME="102" VALUE=""

> TYPE="TEXT" SIZE="7"
> >MAXLENGTH="5">
> > </td>
> > <TD>
> > <FONT FACE="MS Sans Serif, Arial, Helvetica"
> >SIZE="1"><B>Radius:</B></font><BR>
> > <INPUT TYPE="text" NAME="103" VALUE=""

> SIZE="3" MAXLENGTH="3"
> >CLASS="Text">
> > </TD> <td>
> > <INPUT NAME="1002" TYPE="SUBMIT" VALUE="Find

> Zip Codes"
> >Class="Submit">
> > </td>
> > <TD></form>
> >
> >I tried http://http://zipfind.net/scripts/miles.exe?

> 102=80241&103=5 to
> >submit a zip of 80241 and a radius of 5, but it does not

> return a valid
> >page. Can anyone decipher what I am doing wrong?
> >
> >Thanks in advance,
> >
> >hyperless in denver
> >
> >
> >.
> >



 
Reply With Quote
 
Jim Buyens
Guest
Posts: n/a
 
      21st Oct 2003
If you can make this an ASP page, code your two <input>
tags:

<INPUT Class="Text" NAME="102"
VALUE="<%=request("102")%>" TYPE="TEXT" SIZE="7"
MAXLENGTH="5">

and

<INPUT TYPE="text" NAME="103"
VALUE="<%=request("102")%>" SIZE="3"
MAXLENGTH="3" CLASS="Text">

If you can't use ASP, add this code to the <head> section
of your page.

<script>
function qsobj (){
var qvbl;
var qstring = "" + document.location.search.substring(1);
if (qstring != ""){
var qpairs = qstring.split("&");
for (i=0; i < qpairs.length; i++) {
qvbl = qpairs[i].split("=");
this["" + qvbl[0]] =
unescape(qvbl[1].replace("+"," "));
}
}
}
function getQS(avbl){
if (qstr[avbl] == null){
return "";
}else{
return qstr[avbl];
}
}
var qstr = new qsobj();
</script>

and then code your form fields like this:

<script>
document.write("<INPUT Class='Text' NAME='102' VALUE='" +
getQS("102") +
"' TYPE='TEXT' SIZE='7' MAXLENGTH='5'>");
</script>

and

<script>
document.write("<INPUT Class='Text' NAME='103' VALUE='" +
getQS("103") +
"' TYPE='TEXT' SIZE='3' MAXLENGTH='3'>");
</script>

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*




>-----Original Message-----
>Hi all,
>
>I would like to create a link on my page that sends a

zip code and radius to
>the following form:
>
><form method="POST"

action="http://zipfind.net/scripts/miles.exe">
> </TD>
> <TD>
> <FONT FACE="MS Sans Serif, Arial, Helvetica"

SIZE="1"><B>ZIP
>Code:</B></font><BR>
> <INPUT Class="Text" NAME="102" VALUE=""

TYPE="TEXT" SIZE="7"
>MAXLENGTH="5">
> </td>
> <TD>
> <FONT FACE="MS Sans Serif, Arial, Helvetica"
>SIZE="1"><B>Radius:</B></font><BR>
> <INPUT TYPE="text" NAME="103" VALUE=""

SIZE="3" MAXLENGTH="3"
>CLASS="Text">
> </TD> <td>
> <INPUT NAME="1002" TYPE="SUBMIT" VALUE="Find

Zip Codes"
>Class="Submit">
> </td>
> <TD></form>
>
>I tried http://http://zipfind.net/scripts/miles.exe?

102=80241&103=5 to
>submit a zip of 80241 and a radius of 5, but it does not

return a valid
>page. Can anyone decipher what I am doing wrong?
>
>Thanks in advance,
>
>hyperless in denver
>
>
>.
>

 
Reply With Quote
 
Jim Buyens
Guest
Posts: n/a
 
      21st Oct 2003
"Mike Macgowan" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Thanks Jim.
>
> I don't have the option of changing the form as I am passing the data to the
> form. I was hoping I could get the data put together so that the form would
> accept it. I have inquired into the site about customizing the database. I
> appreciagte your help and anyone else that may have additiional ideas.


Have you considered bypassing the supplied form, and developing your
own form using the same form field names and action property?

Or perhaps you could open the existing form in a frameset or a new,
named window, and then manipulate its properties from your page.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*
 
Reply With Quote
 
Mike Macgowan
Guest
Posts: n/a
 
      21st Oct 2003
Thanks for your ideas. I took what you said earlier and found a database
using ASP. I create the hyperlinks in mappoint, seed them with the zip and
specify the radius and a beautiful table pops up with a lot of extra
statistics that makes us look like we spent years programming. Your bits
were essential.


"Jim Buyens" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Mike Macgowan" <(E-Mail Removed)> wrote in message

news:<(E-Mail Removed)>...
> > Thanks Jim.
> >
> > I don't have the option of changing the form as I am passing the data to

the
> > form. I was hoping I could get the data put together so that the form

would
> > accept it. I have inquired into the site about customizing the database.

I
> > appreciagte your help and anyone else that may have additiional ideas.

>
> Have you considered bypassing the supplied form, and developing your
> own form using the same form field names and action property?
>
> Or perhaps you could open the existing form in a frameset or a new,
> named window, and then manipulate its properties from your page.
>
> Jim Buyens
> Microsoft FrontPage MVP
> http://www.interlacken.com
> Author of:
> *------------------------------------------------------*
> |\----------------------------------------------------/|
> || Microsoft Office FrontPage 2003 Inside Out ||
> || Microsoft FrontPage Version 2002 Inside Out ||
> || Web Database Development Step by Step .NET Edition ||
> || Troubleshooting Microsoft FrontPage 2002 ||
> || Faster Smarter Beginning Programming ||
> || (All from Microsoft Press) ||
> |/----------------------------------------------------\|
> *------------------------------------------------------*



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Link between forms when the child field is part of the primary key causing crashes when creating new records in main form dan.neely@gmail.com Microsoft Access Form Coding 0 7th Jun 2007 08:42 PM
Creating a link between google maps and form =?Utf-8?B?ZmFzY2Fs?= Microsoft Access Form Coding 1 27th Jun 2006 02:52 PM
When creating a button to open a form, how can I link multiple.... =?Utf-8?B?TXVsdGktbGluayBjb21tYW5kIGJ1dHRvbg==?= Microsoft Access Getting Started 3 22nd Nov 2004 08:16 AM
Would like to link same 5 form header fields (link records) on mu. =?Utf-8?B?TExMNzc3?= Microsoft Access 0 23rd Oct 2004 08:53 PM
Creating a Form to link with Access Clifton Microsoft Outlook Discussion 1 20th May 2004 05:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:57 PM.