/    Sign up×
Community /Pin to ProfileBookmark

Newbie problem

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

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@pyroMay 19.2003 — 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:

[code=php]<?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"/>';
}
?>[/code]
Copy linkTweet thisAlerts:
@2030671authorMay 19.2003 — 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.
Copy linkTweet thisAlerts:
@pyroMay 19.2003 — Yes, it can be done in ASP. Post here for help in that: http://forums.webdeveloper.com/forumdisplay.php?s=&forumid=9
Copy linkTweet thisAlerts:
@JonaMay 19.2003 — [b][font=arial][color=maroon]One simple question: Why did you post in the PHP forum if you wanted to do it with ASP, Javascript, or VBScript?[/color][/font][/b]

Food-4-Thought, eh? ?

Jona
Copy linkTweet thisAlerts:
@2030671authorMay 20.2003 — Because i didn't know anything about php, maybe if i saw some code it would make sense but it didn't so ....
Copy linkTweet thisAlerts:
@JonaMay 20.2003 — [b][font=arial][color=maroon]Oh, I see. lol[/color][/font][/b]
×

Success!

Help @2030671 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...