473,325 Members | 2,816 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,325 software developers and data experts.

Take post values and add them to the end of a url?

Hi all,
I have an iframe and I have a form. They are on separate pages. I am posting the values from the first to the other. So far so good.

Next I was trying to get the value that I posted to be added to the end of the url
like
Expand|Select|Wrap|Line Numbers
  1. <iframe 
  2. src ="http://www.google.ie/search?hl=en&q=+$_POST['searchstring']"
  3. width="50%" height="50%"  align="right">
  4. </iframe>
Ya that code will probably look nooby but that was an attempt out of desperation :P.

where the + is in the code above, I want to have the value of the variable come into play. Any Ideas?
Apr 26 '08 #1
4 1328
Markus
6,050 Expert 4TB
Take post values and add them to the end of a url?
--------------------------------------------------------------------------------

Hi all,
I have an iframe and I have a form. They are on separate pages. I am posting the values from the first to the other. So far so good.

Next I was trying to get the value that I posted to be added to the end of the url
like


Code: ( text )
<iframe
src ="http://www.google.ie/search?hl=en&q=+$_POST['searchstring']"
width="50%" height="50%" align="right">
</iframe>


Ya that code will probably look nooby but that was an attempt out of desperation :P.

where the + is in the code above, I want to have the value of the variable come into play. Any Ideas?
[html]
href=http://google....?p=1&f=<?php echo $_POST['value'];?>
[/html]
Does that help?
Apr 26 '08 #2
[html]
href=http://google....?p=1&f=<?php echo $_POST['value'];?>
[/html]
Does that help?
Yes, that helps alot ty. I that got me on the right track.
Its doing what i want only its adding "width" to the value for example when i enter in search into the form on the first page and submit it would turn out like "searchwidth". its probably something i've messed along the way but heres the latest with you suggestion.

Expand|Select|Wrap|Line Numbers
  1. <iframe 
  2. src="http://www.google.ie/search?hl=en&q=<?php echo $_POST['searchstring'];?>
  3. width="50%" height="50%"  align="right">
  4. </iframe>
  5.  
Apr 26 '08 #3
[html]
href=http://google....?p=1&f=<?php echo $_POST['value'];?>
[/html]
Does that help?
I was missing a quote :). Thanks again Mark
Apr 26 '08 #4
TheServant
1,168 Expert 1GB
Why are yout not using a GET form?
Apr 27 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: TG | last post by:
Dear PHP Group, I have two forms that are used to collect user information. The first one takes user inputted values such as fullname, city, address etc. I want these values to display in the...
15
by: Thomas Scheiderich | last post by:
I am trying to understand Session variables and ran into a question on how they work with data that is passed. I have an HTM file that calls an ASP file and sends the name either by GET or POST....
6
by: brian_mckracken | last post by:
This might not be the right group for this question, since its kind of a pure html question... Given the html construct: <form action='index.php?expand=0,10000' method='post'> Email: <input...
2
by: Ben | last post by:
Hi I have the two funcions below, login_web that posts data to a webpage and fcn_parseviewstate that parses the viewstate data for the post. I have a problem with the strPostData, I have been...
8
by: Paw | last post by:
Greetings. I use asp. what I need is is when a visitor comes to the site, I need it to check the host name. if "www.hometowndigest.com" is the host, then check a folder named "something" and if...
7
by: Carl | last post by:
these are three files below : submit.html <html> <head> </head> <body> <form action="redirect.php" method="POST" > <input type="text" name="value" value="test" > <input type="submit" >...
16
by: Ian Davies | last post by:
Hello Needing help with a suitable solution. I have extracted records into a table under three columns 'category', 'comment' and share (the category column also holds the index no of the record...
8
by: so many sites so little time | last post by:
this time i am going to use the scripts from the book and just change the names to match what i am trying to do now i just got an error that i know shouldnt be an error i think. this is the error:...
1
by: mbcode | last post by:
I am trying to use a Javascript picklist box and then echo the chosen values back to the screen (and insert in the db later) but I am getting the Button value rather than the list values. I have...
2
by: adamace5o | last post by:
When i try to use post variables with php and mysql i can't get the insert into statement to accept varibles as values. If i use 'test' instead of $test it does work. I suspect it is something to do...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.