473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Send a form through PHP

TheMadMidget
I am trying to send a form through PHP. I want it to act the same as a regular form with a post method. I have used cURL before to just send the information, but I am trying to make it follow it. I do not know if I am describing this right. Basically I could make a form with action="stuff.php" and method="post". I want the php to send the information to stuff.php and be at stuff.php.

Thanks,
Jason
Nov 5 '06 #1
7 1712
ronverdonk
4,258 Expert 4TB
Show us your code!

Ronald :cool:
Nov 5 '06 #2
Show us your code!

Ronald :cool:
I don't have any idea on how to start, therefore, no code
Nov 5 '06 #3
ronverdonk
4,258 Expert 4TB
Then why don't you start with the form, you said you know how to do that, and we'll see when you get stuck. This is a forum for members helping other members with PHP coding problems, this is not a coding-on-demand shop.
Google a bit around in the various php script sites and you'll probably find some ready made code or snippets.

Ronald :cool:
Nov 5 '06 #4
I don't have problems with regular HTML forms. I'm trying to send a form through PHP, don't display one. The closest thing I have is this:
[PHP]

<body onLoad="javascript:document.Blackboard.submit();">

<?php
include("../cookies.php");
echo '
<form method="post" action="https://blackboard.unf.edu/webapps/login/" name="Blackboard" class=hide ONSUBMIT="return validate_form(this)">
<input value="login" name="action" type="hidden">
<input value="" name="remote-user" type="hidden">
<input value="" name="new_loc" type="hidden">
<input value="" name="auth_type" type="hidden">
<input value="" name="one_time_token" type="hidden">
<input value="' . base64_encode($UserPassword) .'" name="encoded_pw" type="hidden">
<input type="hidden" name="user_id" value="' . $UserName . '">
<input name="password" type="hidden" value="">
</form>
';
?>

[/PHP]
This works, but poses a security risk because it is not server-side and is not instant by any means. This shows a blank screen before proceeding that people can either quickly do a view source on or simply stop the page transtition by pressing ESC.
Nov 6 '06 #5
And I've been looking on Google for the last month, that's how I found this site two weeks ago.
Nov 6 '06 #6
ronald . i think he is trying to get someone's login information from cookies .this illegal dont help him .........
Nov 6 '06 #7
The cookies I'm taking the info from are my own. I set them. This is a small system and I don't use SQL so all my information is encoded in cookies.
Nov 6 '06 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Andrew Williams | last post by:
Hi, I have just created a web form that should send its details to an e-mail address. The problem is that I was working on the pretense that CDONTS would suffice my needs. However, after...
3
by: Erik T. Nomad | last post by:
I've created a link that will enable the reader of any page on my website to click it, enter an e-mail address, and have it arrive in that inbox with a hyperlink to the site. However, I'm...
5
by: RICHARD BROMBERG | last post by:
I am already using ASP/Cdonts to send the contents of a Form by e-mail and would like to include a link on my page to send the page itself by e-mail to a named recipient. Can anyone start me in...
3
by: Kassam | last post by:
Hi MVPs out there. I have constructed an order form and the users will enter the informtion. I now need to send the filled out form as an e-mail (body being the HTML with the fille din data) to...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
2
by: Fatih BOY | last post by:
Hi, I want to send a report from a windows application to a web page like 'report.asp' Currently i can send it via post method with a context like local=En&Username=fatih&UserId=45&Firm=none...
1
by: Miguel Dias Moura | last post by:
Hello, Can you help me out in making this work? What I want is as simple as sending form values to an email. The code I am using is the following:
9
by: eswanson | last post by:
I have a web page I need to post a file plus some other fields to it. How can I do this from a asp.net page. I know I can send individual fields to the other page, but how do I send a file to the...
2
by: Malli mindwave | last post by:
Hi, We are using the yahoowebHostiing service for my company website, In that one screen of the SendComments/FeedBack section is there, I'm basically dot.net develeoper ,but yahoowebhosting not...
6
by: Harshpandya | last post by:
Hi all, I am working on the form in which you fill out the whole PHP form and e mail that details to someone. It is working fine. But now i want to send the same form to be sent to different...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.