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
need some form help please!
Old 04-21-2005, 06:42 PM need some form help please!
cpfreak23's Avatar
Super Talker

Posts: 143
Trades: 0
Ok i have this form that u fill out a short Q&A, and when done u hit the submit button and it automatically emails it to me. But i was wondering...on the page before it it asks for ur name and/or email, and it uses the default form method-to add it to the url after an "?" symbol. Is there a way to be able to have the form take that information (wats after the "?" symbol) and make it apart of that form...like in a text field or even better a hidden field?? Ive only started webmastery this year and im taking a course on it next year so im sort of clueless on the way forms work. Thanks

umm..since no one seems to have any ideas...ill restate what i want to do-I think this is a PHP question but im not for sure-but i have never used PHP so im clueless. On my website i have a short Q & A that comes after a form that you type in you email address and/or name. (It needs to work for either one, but one only) And the form uses the default method - where it puts an "&" and adds the form data to the end of the url. How can i make this data part of the new form thats on the Q & A page?

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

Posts: 143
Trades: 0
does anyone have any ideas plz?
cpfreak23 is offline
Reply With Quote
View Public Profile
 
Old 01-23-2006, 11:33 PM
Skorch1's Avatar
Super Talker

Posts: 115
Location: California
Trades: 0
Change the method attribute, in the form tag, to post(rather than get).

You also could use
PHP Code:
$values=$_SERVER['REQUEST_URI'];
$seperate=explode("?",$values);
/* $seperate[1] now contains the string that came after the question mark in your url. You can extract the values from the string however you want(i'd still use explode*/ 
HTML Code:
<form method="post">
<input type="hidden" value="<?php echo $seperate[1];?>" name="urlvals" />
</form>
The string is now contained in the post variable(after form is submitted)
$_POST['urlvals']
__________________
Check out my
Please login or register to view this content. Registration is FREE
website!
Skorch1 is offline
Reply With Quote
View Public Profile Visit Skorch1's homepage!
 
Old 01-27-2006, 06:56 PM
Junior Talker

Posts: 2
Trades: 0
You can pass dynamic variables thorough the querry string or through hidden fields. You can also add data to a database and extract the data on a different webpage. Hidden fields is recommended and a bit more secure than the querry string method. You will need to extract the data and define the variables within the php program.

www.astriden.com
flyzone1 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to need some form help please!
 

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 0.16734 seconds with 12 queries