|
-
Mar 7th, 2006, 10:41 AM
#1
Thread Starter
Fanatic Member
Frontpage: export value from htm to Formfields
Frontpage 2000
Hi everybody,
I got a normal html hyperlink on a webpage and with the click on this hyperlink I open a new (_blank) webpage in which I have a form field.
I need to transfer an value from the first webpage to the second webpage that I can fill an Formfield value automaticly.
Is there any chance? Any ideas?
nice greetings to everyone
-
Mar 7th, 2006, 05:10 PM
#2
Re: Frontpage: export value from htm to Formfields
pass the field value as a get parameter, then do server side processing to put the value into the form field.
Example in PHP, if you sent the value like this
mypage.php?food=Sausages
Then you can add it to the destination form like this
PHP Code:
Favourite food: <input name="favourite" type="text" value="<?=$_GET['food']?>" />
-
Mar 8th, 2006, 09:54 AM
#3
Thread Starter
Fanatic Member
Re: Frontpage: export value from htm to Formfields
Hi penagate,
thanks for the fast answer. I dont use php and anything. I just use until now Frontpage, no asp, no php and not anything else. Is there a chance to transfer in html any values?
-
Mar 8th, 2006, 10:59 AM
#4
Re: Frontpage: export value from htm to Formfields
No, you could try Javascript but remember never to rely on it.
Can you explain what you're doing with this? Maybe there is a better method. Many people dislike new windows.
-
Mar 9th, 2006, 01:26 AM
#5
Thread Starter
Fanatic Member
Re: Frontpage: export value from htm to Formfields
I have an webpage. On this page I have an hyperlinktext. I use Frontpage 2000 and I write for example "Press here to go to the next page". If the customer press then the hyperlink, this hyperlink get executed and he will be on a new page. The problem is that I have different hyperlinks with different text. And depending on the text I need to have an different text in the other page. Or i need to have different values in the other page in formfields.
Example:
Webpage1
Press here to go to Canada
Press here to go to Mexico
... if the customer press on button "Canada" then I want to go to the same webpage as when he press on the button "Mexico", but with the difference that you see here:
Webpage2
Your Name:
Your Address:
Destination: "Canada"
(This destination is already filled, but can be overwritten from the customer)
I could use VBScript, but then I have to change a lot of things. Is there any way how to get the informations to the other webpage and that I can find out what button he pressed in the webpage before?
.................
I checked now a little more the hyperlink in Frontpage. The Button "Parameters" give me the chance to include Path and Query_strings.
Is there a chance to read the values of this Query_Strings into a value of an Form field WITHOUT using a database or ASP?
Last edited by Franky; Mar 9th, 2006 at 02:26 AM.
-
Mar 9th, 2006, 07:19 AM
#6
Re: Frontpage: export value from htm to Formfields
I really strongly advise you not to use Frontpage. It spews out crappy HTML. But anyway, in answer to your question, no it is not possible to read a query string without using any kind of scripting (server side or client side).
For what you sound like you're doing, I recommend that you do use server-side scripting to make the pages dynamically generated. Static pages really are just that, static and unchanging. For a decent server side setup I recommend PHP. Your host should support it and it is extremely easy, simply change the document extension to .php and you can insert PHP code anywhere you like within <?php - ?> tags. ASP is clumsier for simple pages.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|