Jump to content

form problem


MDanz

Recommended Posts

below in the form action, i've put "test.php?w=$sw&h=$sh" but when i input the form i get this..

 

test.php?search=example&submit=search

 

how do i get all of this together in the url?

 

<form action='test.php?w=$sw&h=$sh' method='get'>
                 <input type='text' size='35' name='search' />  
            <input type='submit' name='submit' value='search' style='font-size:10px' />
      </form>

Link to comment
https://forums.phpfreaks.com/topic/192570-form-problem/
Share on other sites

in short how do i get it to look like this?

 

http://www.stackway.com/test.php?w=1440&h=900&search=example&submit=search

 

i even tried this

 

<?php
   $sw = $_GET['w'];
 $sh = $_GET['h'];

$theurl = "http://test.php?w=$sw&h=$sh&search=example&submit=search"; ?>


	<form action="$theurl" method="get">
       
          
            <input type="text" size="35" name="search" />  
            <input type="submit" name="submit" value="search" style="font-size:10px" />
      </form> 

 

still comes up like "test.php?search=example&submit=search"

Link to comment
https://forums.phpfreaks.com/topic/192570-form-problem/#findComment-1014595
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.