Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 04-22-2005, 07:14 PM Hidden Field Help..(updated plz read)
cpfreak23's Avatar
Super Talker

Posts: 143
Trades: 0
hello again, ive been searching and searching all over the place and im about to pull my hair out...is there away maybe to be able to contain the "get" element of a previous form from another page in a hidden field on the next page?? i hope that makes sense..plz help

umm...basically i want to have the current "get" data on the top of the page - everything after the "?" in a hidden field on a form. the get data that i need usses the variable n, for instance: www.website.com/form.htm?n=data

Last edited by cpfreak23; 04-22-2005 at 10:11 PM..
cpfreak23 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-22-2005, 10:49 PM
Zeal's Avatar
Average Talker

Posts: 17
Location: Texas
Trades: 0
I think you need PHP and javascript. You're using a free host right? Or..? If you're using a free host, I don't think it's possible, and you'll have to use javascript to get the job done. Or you could use a free service such as Bravenet to get a form.

Javascript would get the job done though. <_< But I suck at javascript. So I can't code you something -.-; Sorry!
Zeal is offline
Reply With Quote
View Public Profile Visit Zeal's homepage!
 
Old 04-22-2005, 10:52 PM
cpfreak23's Avatar
Super Talker

Posts: 143
Trades: 0
or even just the whole url in a hidden field would be good...ive tried something allong the lines of this:

the hidden field being:
<input type="hidden" name="inputName" value="" />

and the submit button being:
<inout name="form_submit" type="submit" onClick="window.location.href=document.formName.in putname.defaultvalue />


as u mite beable to see most of my html code writing is guess and check..but i feal very stupid not knowing how to do this...so could some one please help?
cpfreak23 is offline
Reply With Quote
View Public Profile
 
Old 04-22-2005, 11:45 PM
cpfreak23's Avatar
Super Talker

Posts: 143
Trades: 0
no im not using a free host...im paying for it and i have it all...just dont really know how to use it
cpfreak23 is offline
Reply With Quote
View Public Profile
 
Old 04-23-2005, 12:14 AM
Phaedrus's Avatar
Ultra Talker

Posts: 271
Location: CA
Trades: 0
If you have PHP available, it's easy to get the "n" variable and use it. You've apparently got two forms that you're stringing together, but in PHP you can make a form submit to itself and that might be easier. For example, here's how to put two forms into one PHP page:

PHP Code:
<?php

// The form was not submitted, so show the first form
if (!isset($_POST['submit']))
{
  
$form '<form action="" method="post">';
  
$form.= '<input type="text" name="n" />';
  
$form.= '<input type="submit" name="submit" />';
  
$form.= '</form>';
  
  echo 
$form;
}

// The form was submitted, so show the second form
else
{
  
// Get the value for 'n'
  
$n $_POST['n'];

  
//Here, you can do whatever you want with the $n value
}

?>
__________________

Please login or register to view this content. Registration is FREE
Phaedrus is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Hidden Field Help..
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.47560 seconds with 12 queries