Click to See Complete Forum and Search --> : Newbie problem
2030671
05-19-2003, 09:30 AM
I already have a website with pc-products. I have to implement this. Some older products are being sold online. You can place bids (People just email their bid). I have to get this : people can fill in a value in a textbox, when pushed a button this value automatically gets emailed to us and automatically placed in another textbox on the page which content you can't alter.
Is this possible or should i do all this manually?
Thanx
Jelle
Yes, it is possible. I posted a form to email script here: http://forums.webdeveloper.com/showthread.php?s=&threadid=9543. As far as adding the data to a readonly field, you will probably want to send the value back to the page as a query string (yourpage.php?someval) and then on your page check for a query string, and if one is there, fill the readonly field in with that value. Something like this:
<?PHP
if ($_SERVER["QUERY_STRING"] != "")
{
echo '<input type="text" name="mytext" readonly="readonly" value="'.$_SERVER["QUERY_STRING"].'"/>';
}
else
{
echo '<input type="text" name="mytext" readonly="readonly"/>';
}
?>
2030671
05-19-2003, 09:57 AM
I'm sorry but the php doesn't really make sense to me. Can it be done in Javascript, VBscript or asp? I'm a bit more familiar with those languages.
Yes, it can be done in ASP. Post here for help in that: http://forums.webdeveloper.com/forumdisplay.php?s=&forumid=9
One simple question: Why did you post in the PHP forum if you wanted to do it with ASP, Javascript, or VBScript?
Food-4-Thought, eh? ;)
Jona
2030671
05-20-2003, 03:42 AM
Because i didn't know anything about php, maybe if i saw some code it would make sense but it didn't so ....